/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--hh-font-family);
    line-height: var(--hh-type-body-lh);
    color: var(--hh-color-text-primary);
    background: var(--hh-color-base-offWhite);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: var(--hh-color-base-white);
    border-radius: var(--hh-radius-lg);
    border: 1px solid var(--hh-color-borders-default);
    box-shadow: var(--hh-shadow-lg);
    padding: var(--hh-space-2xl);
    width: 100%;
    max-width: 420px;
    margin: var(--hh-space-lg);
}

@media (max-width: 480px) {
    .login-container {
        padding: var(--hh-space-xl);
        margin: var(--hh-space-sm);
        border-radius: var(--hh-radius-md);
    }
}

.logo {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 64px;
    height: 64px;
}

.logo h1 {
    color: var(--hh-color-text-primary);
    margin: 0;
    font-size: var(--hh-type-h2-size);
    font-weight: var(--hh-type-h1-weight);
}

.logo .tagline {
    color: var(--hh-color-text-secondary);
    margin: 0;
    font-size: var(--hh-type-body-size);
    font-weight: 500;
}

@media (max-width: 480px) {
    .logo {
        margin-bottom: 20px;
        gap: 6px;
    }

    .logo img {
        width: 56px;
        height: 56px;
    }

    .logo h1 {
        font-size: var(--hh-type-h3-size);
    }
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: #f5f5f5;
    border-radius: var(--hh-radius-md);
    padding: 4px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--hh-color-text-secondary);
    border-radius: var(--hh-radius-sm);
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--hh-color-text-primary);
}

.auth-tab.active {
    background: white;
    color: var(--hh-color-brand-slate);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.password-field-container {
    position: relative;
}

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

.password-toggle:hover {
    color: #1a1a1a;
}

.password-toggle:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
    border-radius: 4px;
}

.password-field-container input[type="password"],
.password-field-container input[type="text"] {
    padding-right: 50px;
}

/* Old button styles removed - see bottom of file for new styles */

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c66;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #6c6;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* ============================================
   TRUST LINE (Minimal)
   ============================================ */

.trust-line {
    text-align: center;
    font-size: 13px;
    color: var(--hh-color-text-secondary);
    margin: 0 0 20px 0;
    letter-spacing: 0.01em;
}

@media (max-width: 380px) {
    .trust-line {
        font-size: 12px;
        margin-bottom: 16px;
    }
}

/* ============================================
   GOOGLE SIGN-IN WRAPPER
   ============================================ */

.google-signin-wrapper {
    margin-bottom: 12px;
    min-height: 44px;
}

.google-hint {
    text-align: center;
    font-size: 11px;
    color: var(--hh-color-text-tertiary);
    margin: 6px 0 0 0;
}

/* Google button - full width, no flicker */
.google-signin-container {
    width: 100%;
    margin-bottom: 0;
    min-height: 44px;
}

.g_id_signin {
    width: 100% !important;
    display: block !important;
}

.g_id_signin > div {
    width: 100% !important;
}

.g_id_signin iframe {
    width: 100% !important;
    height: 44px !important;
    border: none !important;
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    color: var(--hh-color-text-tertiary);
    font-size: 13px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.divider span {
    background: var(--hh-color-base-white);
    padding: 0 12px;
    position: relative;
    z-index: 2;
}

/* ============================================
   EMAIL FORM STYLING
   ============================================ */

.email-form {
    opacity: 0.95;
}

.email-form .form-group {
    margin-bottom: 16px;
}

.email-form .form-group label {
    font-size: 13px;
    color: var(--hh-color-text-secondary);
}

.email-form .form-group label .hint {
    font-weight: 400;
    color: var(--hh-color-text-tertiary);
}

.email-form input::placeholder {
    color: var(--hh-color-text-tertiary);
}

/* verification-notice removed for cleaner UX */

/* ============================================
   AUTH BUTTONS
   ============================================ */

.auth-button {
    width: 100%;
    padding: 14px 20px;
    background: #F47853;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(244, 120, 83, 0.2);
}

.auth-button:hover {
    background: #e5694a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 120, 83, 0.3);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(244, 120, 83, 0.2);
}

.auth-button.secondary {
    background: var(--hh-color-brand-slate);
    box-shadow: 0 2px 4px rgba(26, 26, 26, 0.1);
}

.auth-button.secondary:hover {
    background: #2d2d2d;
    box-shadow: 0 4px 8px rgba(26, 26, 26, 0.15);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 480px) {
    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        padding: 10px;
        font-size: 13px;
    }

    .google-signin-wrapper {
        margin-bottom: 10px;
    }

    .divider {
        margin: 12px 0;
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .auth-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .back-link {
        margin-top: 16px;
    }

    .back-link a {
        font-size: 13px;
    }
}
