
:root {
    --bg-pink: #ffc0cb;
    /* soft pink background */
    --panel: #ffffff;
    /* white inner panel */
    --outer: #fff5f7;
    /* very light pink container */
    --shadow-dark: rgba(0, 0, 0, .35);
    --shadow-inset: rgba(0, 0, 0, .15);
    --field-bg: #ffffff;
    --field-br: #f5d5d8;
    /* light pink border */
    --text: #2b2b2b;
    --muted: #6f6963;
    --black: #0e0e0e;
    --gold: #c49563;
    /* gold accent */
    --gold-light: #D4A574;
    /* lighter gold accent */
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg-pink);
    color: var(--text);
}

/* Centered canvas */
.wrap {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px
}

/* Large rounded outer container with soft shadow */
.outer {
    width: min(100%, 980px);
    background: var(--outer);
    border-radius: 30px;
    padding: 36px 36px;
    box-shadow:
        0 22px 40px var(--shadow-dark),
        inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* Small centered panel card */
.panel {
    width: min(500px, 90%);
    margin-inline: auto;
    background: var(--panel);
    border-radius: 16px;
    padding: 28px 26px 26px;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, .25),
        inset 0 0 0 1px rgba(255, 255, 255, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    height: 160px;
    width: auto;
    display: block;
    margin: 2px auto 14px
}

/* Form */
.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.field {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--field-br);
    background: var(--field-bg);
    padding: 0 14px;
    outline: none;
    color: #333;
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, .06),
        inset 0 -2px 3px rgba(255, 255, 255, .6);
}

.field::placeholder {
    color: #a89a94
}

.already {
    text-align: center;
    font-size: 13px;
    color: #5d5853;
    margin: 6px 0 2px;
}

.lnk {
    color: var(--gold);
    text-decoration: none
}

/* Primary black button with gold underline accent */
.btn-primary {
    height: 50px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: var(--black);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: .24em;
    display: grid;
    place-items: center;
    margin-top: 4px;
    position: relative;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.btn-primary::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 120px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}

/* OR divider with short lines */
.or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #6b6660;
    font-size: 12px;
    margin: 4px 0 0;
}

.or::before,
.or::after {
    content: "";
    height: 1px;
    background: #d4b5ba;
}

/* Google pill button (visual only) */
.google-pill {
    margin: 12px auto 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--field-br);
    background: #fff;
    color: #222;
    cursor: default;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}
.google-pill .g {
    display: inline-grid;
    place-items: center
}

.google-pill .txt {
    font-weight: 500
}

/* Responsive keeps same proportions */
@media (max-width: 560px) {
    .outer {
        padding: 22px
    }

    .panel {
        padding: 22px
    }

    .btn-primary::after {
        width: 96px
    }
}
/* Flash messages (Django messages framework) */
.flash{ margin-top:6px }
.msg{ margin:6px 0; font-size:14px }
.msg.error{ color:#b42318 }     /* error text */
.msg.success{ color:#177245 }   /* success text */

/* Disabled Google pill visual */
.google-pill[disabled]{
  opacity: .9;
  cursor: default;
}

/* Optional: emphasize invalid inputs on server-side re-render */
.field.is-invalid{ border-color:#e4504d; box-shadow:0 0 0 4px rgba(228,80,77,.12) }

.btn.social-btn.google {
    display: block;
    width: 100%;
    text-align: center;
    margin: 15px 0;
    padding: 10px 0;
    border-radius: 8px;
    background-color: #4285F4; /* Google blue */
    color: white;
    text-decoration: none;
    font-weight: 500;
}