/* ======================================================================
   LOGIN MODAL STYLES
   ====================================================================== */

/* Modal Overlay */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.login-modal-overlay.active {
    display: flex;
}

/* Modal Container */
.login-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Modal Header */
.login-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.login-modal-close:hover {
    color: #333;
}

.login-modal-logo {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 8px;
}

.login-modal-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Modal Body */
.login-modal-body {
    padding: 24px;
}

/* Form Styles */
.login-form-group {
    margin-bottom: 16px;
}

.login-form-label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.login-form-label .required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Password Input Wrapper */
.login-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-password-input {
    padding-right: 45px !important;
}

.login-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s ease;
}

.login-password-toggle:hover {
    color: #2d5a27;
}

.login-password-toggle .eye-icon {
    width: 20px;
    height: 20px;
}

.login-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.login-form-input:focus {
    outline: none;
    border-color: #2d5a27;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.login-form-input::placeholder {
    color: #999;
}

/* Primary Login Button */
.login-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #446729 0%, #5a7a3a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(68, 103, 41, 0.3);
}

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

/* Error Message */
.login-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: none;
}

.login-error-message.show {
    display: block;
}

.login-error-text {
    color: #dc2626;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}

/* Success Message */
.login-success-message {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: none;
}

.login-success-message.show {
    display: block;
}

.login-success-text {
    color: #16a34a;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}

/* Secondary Links */
.login-secondary-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.login-secondary-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-secondary-link:hover {
    color: #2d5a27;
}

.login-secondary-link.disabled {
    color: #bbb;
    cursor: not-allowed;
    pointer-events: none;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.login-divider-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #999;
    padding: 0 16px;
}

/* Social Login Buttons */
.login-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-social-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-social-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.login-social-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.login-social-btn img,
.login-social-btn svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.login-social-btn-text {
    flex: 1;
    text-align: center;
}

/* Coming Soon Badge */
.coming-soon-badge {
    font-size: 0.7rem;
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* ======================================================================
   RESPONSIVE STYLES
   ====================================================================== */

@media (max-width: 480px) {
    .login-modal {
        width: 95%;
        margin: 16px;
        max-height: 85vh;
    }

    .login-modal-header {
        padding: 20px 20px 14px;
    }

    .login-modal-body {
        padding: 20px;
    }

    .login-modal-logo {
        font-size: 1.5rem;
    }

    .login-secondary-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
