/* Login Page Styles - Headspace Style */
.login-page {
    min-height: 100vh;
    background-color: #f5e6d3;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    background: white;
    border-bottom: none;
    padding: 16px 20px;
}

.login-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
}

.menu-icon span {
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.login-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.login-logo .logo-text {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}

/* Main Content */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 16px;
    color: #000;
}

.signup-prompt {
    font-size: 16px;
    color: #333;
    margin-bottom: 32px;
    text-align: left;
}

.signup-link-text {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.signup-link-text:hover {
    text-decoration: underline;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

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

/* Email Input Error State */
.email-input.error {
    border-color: #ff4444;
}

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

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.password-toggle:hover {
    color: #333;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Error Message */
.error-message {
    font-size: 14px;
    color: #ff4444;
    margin-top: 4px;
    text-align: left;
}

#emailErrorMessage {
    display: none;
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 14px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    text-align: left;
    margin-top: -8px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    margin-top: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

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

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.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 {
    padding: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #a5d6a7;
    text-align: left;
}

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

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-actions .btn {
    min-width: 120px;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
    }

    .login-main{
        align-items: start;
    }

    .login-title {
        font-size: 28px;
    }

    .signup-prompt {
        font-size: 14px;
    }

    .modal-content {
        padding: 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
