/* Login Page Styles */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-elevated) 100%);
}

.login-card {
    background-color: var(--bg-elevated);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    max-width: 450px;
    width: 100%;
    padding: 3rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header svg {
    margin: 0 auto 1.5rem;
    display: block;
}

.login-header h1 {
    color: var(--brand-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.login-header p a.simple-link {
    color: var(--text-inverse);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-header p a.simple-link:hover {
    color: var(--brand-secondary);
}

.login-form {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-base);
    border: 2px solid var(--border-soft);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-base);
    border: 2px solid var(--border-soft);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300a8e1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--brand-secondary);
    background-color: var(--bg-base);
    box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.1);
}

.form-group select option {
    background-color: var(--bg-base);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-secondary);
    background-color: var(--bg-base);
    box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input.error {
    border-color: var(--status-error);
}

.error-message {
    display: block;
    color: var(--status-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: var(--brand-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 225, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-message,
.error-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background-color: rgba(0, 168, 225, 0.1);
    border: 1px solid rgba(0, 168, 225, 0.3);
    color: var(--brand-secondary);
}

.error-banner {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--status-error);
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-soft);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-base);
    border: 2px solid var(--border-soft);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-social:hover {
    background-color: var(--bg-base);
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-social:active {
    transform: translateY(0);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-facebook:hover {
    border-color: var(--status-info);
}

.btn-amazon:hover {
    border-color: #FF9900;
}

.register-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
}

.register-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.register-link a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--text-inverse);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--brand-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-header {
        margin-bottom: 2rem;
    }

    .login-header svg {
        width: 100px;
        height: 42px;
    }

    .login-header h1 {
        font-size: 1.25rem;
    }

    .login-header p {
        font-size: 0.85rem;
    }

    .form-group input,
    .btn-primary,
    .btn-social {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
/* Password Requirements Styles */
.password-requirements {
    background-color: var(--bg-base);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.password-requirements h4 {
    color: var(--brand-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.requirement-item.valid {
    color: var(--brand-secondary);
}

.requirement-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.requirement-item.valid .requirement-icon {
    border-color: var(--brand-secondary);
    background-color: var(--brand-secondary);
    color: white;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem !important;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background-color: rgba(0, 168, 225, 0.05);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px !important;
    height: 24px !important;
    border: 3px solid var(--text-muted) !important;
    border-radius: 6px !important;
    background-color: var(--bg-base) !important;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--text-muted) !important;
    border-color: var(--text-muted) !important;
    box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2) !important;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white !important;
    font-size: 14px !important;
    font-weight: bold;
}

/* Focus state for checkbox */
.checkbox-label input[type="checkbox"]:focus + .checkmark {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Error state for checkbox */
.checkbox-label.error {
    background-color: rgba(255, 68, 68, 0.05);
}

.checkbox-label.error .checkmark {
    border-color: var(--status-error);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.checkbox-label.error .checkmark:hover {
    border-color: var(--status-error);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.5), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.checkbox-label a {
    color: var(--brand-secondary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Registration Form Specific Styles */
.registration-form .form-group {
    margin-bottom: 1.5rem;
}

.registration-form .form-group:last-of-type {
    margin-bottom: 2rem;
}

/* Enhanced Error States */
.form-group input.error {
    border-color: var(--status-error);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}

.form-group input.error:focus {
    border-color: var(--status-error);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

/* Success States */
.form-group input.valid {
    border-color: var(--status-success);
}

.form-group input.valid:focus {
    border-color: var(--status-success);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Loading Animation for Registration */
.btn-primary .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for registration */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .password-requirements {
        padding: 0.75rem;
    }
    
    .requirement-item {
        font-size: 0.8rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}/* 
Simplified Login Styles */
.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.login-links a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--status-info);
    text-decoration: underline;
}

.login-links .separator {
    color: var(--text-muted);
    margin: 0 1rem;
    font-weight: bold;
}

/* Simple Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-elevated);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.modal-header h2 {
    color: var(--brand-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--border-soft);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: var(--border-default);
}

.modal .btn-primary {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.form-error {
    color: var(--status-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
/* Collaps
ible Login Options */
.login-options {
    margin-top: 1.5rem;
}

.forgot-password-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.forgot-password-section a {
    color: var(--text-inverse);
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password-section a:hover {
    color: var(--brand-secondary);
}

.collapsible-section {
    margin-bottom: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background-color: var(--bg-elevated);
}

.collapsible-section summary {
    list-style: none;
    padding: 1rem;
    background-color: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-family: inherit;
}

.collapsible-section summary::-webkit-details-marker {
    display: none;
}

.collapsible-section summary::marker {
    display: none;
}

.collapsible-section summary:hover {
    background-color: rgba(0, 168, 225, 0.1);
    color: var(--brand-secondary);
}

.collapsible-section[open] summary {
    background-color: rgba(0, 168, 225, 0.15);
    color: var(--brand-secondary);
}

.collapsible-section summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.collapsible-section[open] summary::after {
    transform: rotate(180deg);
}

.collapsible-content {
    background-color: var(--bg-elevated);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collapsible-content > p {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--border-soft);
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem 1rem 1rem;
    width: calc(100% - 2rem);
    font-family: inherit;
}

.btn-secondary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 225, 0.3);
}

.social-login-buttons {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-base);
    border: 2px solid var(--border-soft);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
}

.btn-social:hover {
    background-color: var(--bg-base);
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-social:active {
    transform: translateY(0);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-facebook:hover {
    border-color: var(--status-info);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-amazon:hover {
    border-color: #FF9900;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Responsive adjustments for collapsible sections */
@media (max-width: 480px) {
    .collapsible-toggle {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .collapsible-content > p {
        padding: 0.875rem 0.875rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn-secondary,
    .btn-social {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-login-buttons {
        padding: 0.5rem 0.875rem 0.875rem;
    }
}


/* Password Reset Modal - Multi-step Styles */
.modal-header strong {
    color: var(--brand-secondary);
}

.resend-link {
    text-align: center;
    margin-top: 0.5rem;
}

.resend-link a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resend-link a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

/* Password Requirements in Modal */
.modal .password-requirements {
    background-color: var(--bg-base);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.modal .password-requirements p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.modal .password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.modal .password-requirements li {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.3s ease;
}

.modal .password-requirements li .requirement-icon {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Verification Code Input */
#verification-code {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

#verification-code::placeholder {
    letter-spacing: normal;
    font-size: 1rem;
    font-weight: normal;
}

/* Step transitions */
#reset-step-1,
#reset-step-2,
#reset-step-3 {
    animation: fadeIn 0.3s ease;
}

@media (max-width: 480px) {
    .modal .password-requirements ul {
        grid-template-columns: 1fr;
    }
    
    #verification-code {
        font-size: 1.25rem;
        letter-spacing: 0.3rem;
    }
}
