/* ============================================================
   ShubhhRishtey — Login Page CSS
   Matches the Home Page & Registration Page design system
   Cream background · Dark blue headings · Soft gold accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cinzel:wght@400;600&family=Poppins:wght@300;400;500;600&family=Amita:wght@400;700&display=swap');

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS Variables (matching styles.css) ===== */
:root {
    --bg-cream: #f8f6ef;
    --heading-dark: #1c244b;
    --text-blue: #324a6d;
    --gold: #b67b34;
    --brown: #7a4a16;
    --gold-btn: #d4a24c;
    --gold-light: #e8c06a;
    --gold-border: rgba(182, 123, 52, 0.25);
    --gold-border-focus: rgba(182, 123, 52, 0.6);
    --red: #c31b1b;
    --blue: #467ff7;
    --white: #ffffff;
    --font-main: "Poppins", sans-serif;
    --font-display: "Amita", cursive;
    --font-heading: "Cormorant Garamond", serif;
    --font-label: "Cinzel", serif;
}

/* ===== Body ===== */
body {
    font-family: var(--font-main);
    background: var(--bg-cream);
    color: var(--text-blue);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ===== Login Section Wrapper ===== */
.login-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    position: relative;
}

/* Subtle decorative background pattern */
.login-section::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(182, 123, 52, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(182, 123, 52, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(248, 246, 239, 1) 0%, rgba(248, 246, 239, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== Login Container (Card) ===== */
.login-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(28, 36, 75, 0.04),
        0 20px 60px rgba(28, 36, 75, 0.10),
        0 0 0 1px rgba(182, 123, 52, 0.12);
    overflow: hidden;
    position: relative;
}

/* Top gold accent bar */
.login-container::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold-light) 50%,
        var(--gold) 80%,
        transparent 100%
    );
}

/* ===== Login Header ===== */
.login-header {
    text-align: center;
    padding: 42px 44px 30px;
    border-bottom: 1px solid rgba(182, 123, 52, 0.12);
    position: relative;
}

/* Decorative ornament above heading */
.login-ornament {
    font-size: 18px;
    letter-spacing: 10px;
    color: var(--gold);
    margin-bottom: 10px;
    opacity: 0.7;
    user-select: none;
}

/* Site label in Cinzel font */
.login-site-label {
    font-family: var(--font-label);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

/* Main Heading - Cormorant Garamond, dark blue */
.login-header h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 600;
    color: var(--heading-dark);
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Subheading / description */
.login-header p {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-blue);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* ===== Login Body ===== */
.login-body {
    padding: 34px 44px 40px;
}

/* ===== Form Groups ===== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Labels — Poppins, all-caps, gold-tinted dark blue */
.form-group label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-blue);
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Input wrapper for icon + field */
.inp-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Icon inside input */
.inp-icon {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    color: var(--gold);
    pointer-events: none;
    opacity: 0.7;
    flex-shrink: 0;
}

/* ===== Input Fields ===== */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg-cream);
    border: 1.5px solid var(--gold-border);
    border-radius: 10px;
    color: var(--heading-dark);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder {
    color: rgba(50, 74, 109, 0.4);
    font-size: 13px;
    font-weight: 300;
}

.form-group input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow:
        0 0 0 3px rgba(182, 123, 52, 0.12),
        0 2px 8px rgba(182, 123, 52, 0.08);
}

/* ===== Remember Me Row ===== */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    margin-top: -4px;
}

.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--gold);
    cursor: pointer;
    border-radius: 3px;
    flex-shrink: 0;
}

.remember-row label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-blue);
    cursor: pointer;
    user-select: none;
}

/* ===== Login Button ===== */
.login-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(
        135deg,
        #7a4a16 0%,
        var(--gold) 35%,
        var(--gold-light) 55%,
        var(--gold) 75%,
        #7a4a16 100%
    );
    color: var(--white);
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(182, 123, 52, 0.28),
        0 2px 6px rgba(182, 123, 52, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-size 0.3s ease;
    display: block;
    margin-bottom: 0;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(182, 123, 52, 0.38),
        0 4px 12px rgba(182, 123, 52, 0.2);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(182, 123, 52, 0.2);
}

/* ===== Divider ===== */
.divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 24px;
}

.divider-row hr {
    flex: 1;
    border: none;
    border-top: 1px solid rgba(182, 123, 52, 0.18);
}

.divider-row span {
    font-size: 11px;
    color: var(--gold);
    opacity: 0.6;
    white-space: nowrap;
    letter-spacing: 1px;
    font-family: var(--font-label);
}

/* ===== Help / WhatsApp Section ===== */
.help-section {
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-blue);
    text-decoration: none;
    padding: 11px 26px;
    border: 1.5px solid var(--gold-border);
    border-radius: 100px;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.whatsapp-btn:hover {
    background: rgba(182, 123, 52, 0.06);
    border-color: var(--gold);
    color: var(--brown);
    transform: translateY(-1px);
}

.whatsapp-btn svg {
    width: 18px;
    height: 18px;
    fill: #25D366;
    flex-shrink: 0;
}

.help-note {
    display: block;
    margin-top: 14px;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(50, 74, 109, 0.55);
    line-height: 1.7;
}

/* ===== Footer Motif inside card ===== */
.login-footer-motif {
    text-align: center;
    padding: 18px 0 22px;
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--gold);
    opacity: 0.3;
    border-top: 1px solid rgba(182, 123, 52, 0.1);
    margin-top: 8px;
    user-select: none;
}

/* ===== Register Link ===== */
.register-link-row {
    text-align: center;
    padding: 16px 44px 28px;
    font-size: 13px;
    color: var(--text-blue);
    border-top: 1px solid rgba(28, 36, 75, 0.06);
}

.register-link-row a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link-row a:hover {
    color: var(--brown);
    text-decoration: underline;
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 600px) {
    .login-section {
        padding: 40px 12px 60px;
        align-items: flex-start;
        padding-top: 50px;
    }

    .login-container {
        border-radius: 18px;
    }

    .login-header {
        padding: 32px 28px 24px;
    }

    .login-header h1 {
        font-size: 30px;
    }

    .login-body {
        padding: 26px 28px 32px;
    }

    .register-link-row {
        padding: 14px 28px 22px;
    }
}

/* ===== Responsive — Small Mobile ===== */
@media (max-width: 400px) {
    .login-header h1 {
        font-size: 26px;
    }

    .login-ornament {
        font-size: 15px;
        letter-spacing: 7px;
    }

    .login-header {
        padding: 26px 20px 20px;
    }

    .login-body {
        padding: 22px 20px 28px;
    }

    .register-link-row {
        padding: 12px 20px 18px;
    }
}
