* {
    box-sizing: border-box;
}

:root {
    --bg-dark: #045f55;
    --bg-deep: #01463d;
    --card-green: rgba(54, 133, 118, 0.72);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #f4f5f2;
    --text-soft: rgba(244, 245, 242, 0.86);
    --text-muted: rgba(255, 255, 255, 0.62);
    --accent: #f3b33f;
    --accent-strong: #efac2f;
    --primary-btn: #045f55;
    --light-bg: #f3f3f3;
    --light-text: #4b4b4b;
    --light-border: #bdbdbd;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    color: var(--text-main);
    background: radial-gradient(circle at center, rgba(60, 120, 107, 0.42) 0%, rgba(5, 95, 85, 0.95) 55%, rgba(1, 70, 61, 1) 100%);
}

.page-dark {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.screen-wrap {
    width: min(100%, 760px);
    position: relative;
    z-index: 2;
}

.bg-art {
    position: fixed;
    inset: 0 auto 0 0;
    width: 28vw;
    min-width: 210px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    filter: saturate(0.8);
}

.bg-left {
    left: 0;
    background-image: url('../images/bg-left.png');
}

.bg-right {
    left: auto;
    right: 0;
    background-position: right center;
    background-image: url('../images/bg-right.png');
}

.glass-card {
    position: relative;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.08), transparent 26%),
        radial-gradient(circle at 75% 48%, rgba(255, 255, 255, 0.06), transparent 26%),
        linear-gradient(135deg, rgba(76, 147, 132, 0.76), rgba(34, 110, 96, 0.72));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.brand-stack {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.brand-stack-light {
    margin-bottom: 14px;
}

.brand-icon {
    width: 40px;
    height: 52px;
    object-fit: contain;
}

.brand-word {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #d8f5ef;
}

.brand-word-green {
    color: #1f8b79;
}

.welcome-card,
.choice-card,
.verify-card {
    width: 100%;
    max-width: 680px;
    padding: 36px 38px 42px;
    margin: 0 auto;
}

.welcome-card {
    text-align: center;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-heading {
    font-size: clamp(1.1rem, 3.1vw, 2.1rem);
    margin: 38px 0 4px;
    font-weight: 600;
    line-height: 1.15;
}

.celebrate {
    font-size: 2.2rem;
    margin-bottom: 44px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(100%, 320px);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform .2s ease, opacity .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    padding: 0 24px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled,
.btn-disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    background: #c6c6c6 !important;
    color: #efefef !important;
    border-color: #c6c6c6 !important;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-deep {
    background: var(--primary-btn);
}

.btn-deep:hover {
    background: #05564e;
}

.btn-outline-light {
    background: transparent;
    border: 1.7px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-wide {
    width: min(100%, 362px);
    margin: 0 auto;
}

.panel-title {
    text-align: center;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.16;
    margin: 28px 0 12px;
    font-weight: 700;
}

.panel-copy {
    text-align: center;
    max-width: 430px;
    margin: 0 auto 34px;
    color: var(--text-soft);
    line-height: 1.5;
    font-size: 1.05rem;
}

.panel-footnote {
    margin-top: 28px;
    text-align: center;
    color: #fff;
    font-size: 1.05rem;
}

.gold-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: min(100%, 360px);
    margin: 0 auto 34px;
}

.role-card {
    position: relative;
    min-height: 142px;
    border-radius: 18px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    color: #fff;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 10px;
    text-align: left;
    padding: 18px 18px 16px;
}

.role-card.active {
    border-color: #f3c06c;
    box-shadow: inset 0 0 0 1px rgba(243, 192, 108, 0.35);
}

.role-card .radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.role-card.active .radio-dot {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 2px rgba(243, 179, 63, 0.18);
}

.role-icon {
    width: 40px;
    height: 40px;
    color: #fff;
}

.role-name {
    font-size: 1rem;
    font-weight: 500;
}

.page-signup {
    background: var(--light-bg);
    color: var(--light-text);
    min-height: 100vh;
}

.signup-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

.signup-visual {
    background: #7d7f4b;
    min-height: 100vh;
}

.signup-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.signup-panel {
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
}

.signup-shell {
    width: min(100%, 500px);
}

.signup-title {
    margin: 18px 0 10px;
    text-align: center;
    font-size: clamp(2rem, 2.9vw, 2.8rem);
    color: #4c4c4c;
    font-weight: 700;
}

.signup-copy {
    margin: 0 0 28px;
    text-align: center;
    color: #8b8b8b;
    font-size: 1.05rem;
    line-height: 1.5;
}

.signup-form {
    display: grid;
    gap: 16px;
}

.form-block {
    display: grid;
    gap: 8px;
    color: #394553;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.signup-form input,
.signup-form select {
    width: 100%;
    min-height: 56px;
    border-radius: 11px;
    border: 1.4px solid #b6b6b6;
    background: #f7f7f7;
    padding: 0 16px;
    font-size: 1rem;
    color: #4f4f4f;
    outline: none;
}

.signup-form input:focus,
.signup-form select:focus {
    border-color: #1f8b79;
    box-shadow: 0 0 0 3px rgba(31, 139, 121, 0.1);
}

.input-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #b6b6b6;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
}

.terms-copy,
.signin-copy {
    color: #5e5e5e;
    line-height: 1.5;
    font-size: 1rem;
}

.text-link,
.inline-link {
    color: #045f55;
    font-weight: 600;
    text-decoration: none;
}

.btn-signup {
    width: 100%;
    min-height: 60px;
    background: #045f55;
    margin-top: 4px;
}

.btn-signup:hover {
    background: #044e47;
}

.divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 0 18px;
    color: #666;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #d1d1d1;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.social-btn {
    min-height: 56px;
    border-radius: 10px;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #3d4a58;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    font-weight: 700;
}

.google {
    color: #db4437;
}

.apple {
    color: #000;
}

.verify-card {
    padding-top: 26px;
    text-align: center;
    min-height: 494px;
}

.toast-banner {
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: #02791c;
    color: #fff;
    padding: 12px 14px;
    font-size: 0.98rem;
    text-align: left;
}

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 28px;
    width: 34px;
    height: 34px;
    color: #fff;
}

.plane-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 18px 0 8px;
}

.plane-svg {
    width: min(100%, 270px);
    height: auto;
}

.verify-title {
    margin-top: 0;
}

.verify-copy {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 600px;
    margin: 0 auto 10px;
    color: var(--text-soft);
}

.verify-email {
    font-weight: 400;
}

.change-email-link {
    display: inline-block;
    margin-bottom: 30px;
}

.field-error {
    min-height: 14px;
    color: #cc3b3b;
    font-size: 0.86rem;
}

.form-global-error {
    min-height: 22px;
    color: #cc3b3b;
    font-size: 0.95rem;
}

.form-global-error.active {
    margin-top: -2px;
}

@media (max-width: 980px) {
    .signup-layout {
        grid-template-columns: 1fr;
    }

    .signup-visual {
        min-height: 360px;
    }

    .signup-panel {
        padding: 28px 18px 42px;
    }
}

@media (max-width: 760px) {
    .page-center {
        padding: 24px 14px;
    }

    .welcome-card,
    .choice-card,
    .verify-card {
        padding: 24px 18px 28px;
        border-radius: 24px;
    }

    .choice-grid,
    .social-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-wide {
        width: 100%;
    }

    .bg-art {
        display: none;
    }

    .toast-banner {
        left: 10px;
        right: 10px;
        top: -14px;
        font-size: 0.9rem;
    }

    .back-link {
        left: 16px;
    }

    .verify-card {
        padding-top: 48px;
    }

    .welcome-actions {
        width: 100%;
    }

    .social-btn {
        width: 100%;
    }
}
