/* Enhanced Login Container Styling - Matching Website Design */

/* Enhanced Login Container */
.login-container {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 28rem;
    margin: 0 auto;
}

/* Header with rounded corners only on top and red pipe - MATCHING SITE HEADERS */
.login-header {
    border-bottom: 6px solid white !important;
    background-color: #e5e7eb !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.login-header h1::before {
    content: "/ " !important;
    color: var(--primary-color) !important;
    font-weight: bold !important;
    margin-right: 0.5rem !important;
}

.login-header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
}

/* Content area styling */
.login-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color: transparent;
}

/* Logo section styling */
.logo-section {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0rem;
}

.logo-image {
    max-height: 8rem;
    margin: 0 auto;
    object-fit: contain;
    width: auto;
}

/* Form styling - MATCHING SITE CONTAINERS */
.login-form {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.login-form-inner {
    space-y: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Input styling to match site theme */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 0, 31, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Button styling matching site theme */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: none;
    transition: background-color 0.2s;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-primary:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    margin-top: 1rem;
    width: 100%;
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
    text-decoration: none;
}

/* Alert styling - MATCHING SITE ALERTS */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert i {
    margin-right: 0.5rem;
}

/* Footer styling */
.login-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.875rem;
    background-color: white;
    margin: 0 1.5rem 1.5rem 1.5rem;
    border-radius: 0.5rem;
}

.footer-security {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Logged in state styling */
.logged-in-actions {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.logged-in-message {
    margin-bottom: 1.5rem;
}

.logged-in-message i {
    display: block;
    margin-bottom: 0.75rem;
}

.logged-in-message p {
    margin-bottom: 1.5rem;
}

.btn-vote {
    margin-bottom: 0.75rem;
}

.btn-logout {
    margin-top: 0.75rem;
}

/* Responsive design */
@media (max-width: 640px) {
    .login-container {
        margin: 1rem;
        max-width: none;
    }
    
    .login-header {
        padding: 0.75rem 1rem !important;
    }
    
    .login-header h1 {
        font-size: 1.125rem;
    }
    
    .login-content {
        padding: 0 1rem 1rem 1rem;
    }
    
    .logo-section {
        padding: 0.25rem;
    }
    
    .login-form {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 0.625rem;
    }
    
    .btn-primary {
        padding: 0.625rem 0.875rem;
    }
}