/* ============================================
   Mr. Smile Fish Haven — Auth Pages CSS
   ============================================ */

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 80px rgba(22,104,22,0.2);
    border-top: 6px solid #228B22;
    animation: authCardIn 0.4s ease;
}

@keyframes authCardIn {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-logo span { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.auth-card .auth-logo h2 { color: #166816; font-size: 1.6rem; }
.auth-card .auth-logo p { color: #4a7a4a; font-size: 0.95rem; margin-top: 0.3rem; }

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #E0F2E9;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.auth-tab.active {
    color: #228B22;
    border-bottom-color: #228B22;
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #228B22, #90EE90);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #166816, #228B22);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22,104,22,0.3);
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-footer-text a { color: #228B22; text-decoration: none; font-weight: 600; }
.auth-footer-text a:hover { text-decoration: underline; }

.password-toggle {
    position: relative;
}

.password-toggle input { padding-right: 3rem; }

.toggle-eye {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 0;
    transition: color 0.2s;
}

.toggle-eye:hover { color: #228B22; }

/* Google OAuth Button */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E0F2E9;
}

.auth-divider span {
    padding: 0 1rem;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: white;
    border: 2px solid #E0F2E9;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #228B22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.google-btn svg {
    flex-shrink: 0;
}

.forgot-password {
    text-align: center;
    margin-top: 1.2rem;
}

.forgot-password a {
    color: #228B22;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #228B22;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #E0F2E9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #228B22;
}
