* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 229, 255, 0.2), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(255, 58, 180, 0.16), transparent 28%),
        linear-gradient(145deg, #08152a, #050914 64%);
}

a {
    color: #00e5ff;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-shell {
    width: min(1120px, calc(100% - 34px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 34px;
    align-items: center;
    padding: 34px 0;
}

.auth-shell.single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.auth-hero {
    padding: 22px 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 750;
    letter-spacing: 0.2px;
}

.brand-link::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #ff3ab4);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.8);
}

.auth-hero h1 {
    max-width: 650px;
    margin: 24px 0 16px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 760;
}

.auth-hero p {
    max-width: 560px;
    margin: 0;
    color: #b7c3d7;
    font-size: 18px;
    line-height: 1.6;
}

.security-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.security-grid span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
}

.security-grid i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3ab4;
    box-shadow: 0 0 14px rgba(255, 58, 180, 0.9);
}

.auth-panel {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 24px;
    background: rgba(11, 17, 32, 0.72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.11), transparent 35%, rgba(255, 58, 180, 0.09));
}

.auth-panel > * {
    position: relative;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(3, 6, 13, 0.62);
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.tabs a {
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    color: #a9b6c9;
    font-weight: 650;
}

.tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 58, 180, 0.18));
}

.auth-panel h1,
.auth-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.auth-copy,
.helper-text {
    margin: 0 0 20px;
    color: #aebbd0;
    line-height: 1.55;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 13px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-error {
    border: 1px solid rgba(255, 72, 72, 0.34);
    background: rgba(255, 72, 72, 0.12);
    color: #ffc1c1;
}

.alert-success {
    border: 1px solid rgba(0, 229, 255, 0.32);
    background: rgba(0, 229, 255, 0.12);
    color: #c8f8ff;
}

.btn-social,
.btn-primary {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    font-weight: 750;
    cursor: pointer;
}

.btn-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    background: #fff;
    color: #111827;
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.08);
}

.btn-social .fa-google {
    font-size: 19px;
    color: #ea4335;
    filter: drop-shadow(0 0 10px rgba(234, 67, 53, 0.18));
}

.divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 13px;
    border-radius: 999px;
    background: #0b1120;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 17px 15px 14px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 14px;
    outline: 0;
    color: #fff;
    background: rgba(3, 6, 13, 0.66);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

.input-group label {
    position: absolute;
    left: 12px;
    top: -9px;
    padding: 0 8px;
    border-radius: 8px;
    background: #101827;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 650;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: #a9b6c9;
    font-size: 14px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 11px 7px 8px;
    border: 1px solid rgba(0, 229, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #d5e2f5;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.remember-me input {
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    border: 1px solid rgba(0, 229, 255, 0.34);
    border-radius: 50%;
    background: rgba(3, 6, 13, 0.7);
    position: relative;
}

.remember-me input::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    inset: 5px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.remember-me input:checked {
    border-color: rgba(255, 58, 180, 0.9);
}

.remember-me input:checked::after {
    background: #ff3ab4;
    box-shadow: 0 0 12px rgba(255, 58, 180, 0.85);
}

.remember-me:hover {
    border-color: rgba(0, 229, 255, 0.32);
    background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff3ab4, #1677ff 55%, #00e5ff);
    box-shadow: 0 18px 34px rgba(0, 119, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(255, 58, 180, 0.24);
}

.link-button {
    display: grid;
    place-items: center;
    margin-top: 14px;
}

.switch-auth {
    margin-top: 18px;
    color: #a9b6c9;
    text-align: center;
}

@media (max-width: 860px) {
    .auth-shell {
        width: min(100% - 22px, 520px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        align-content: start;
        padding: 10px 0 18px;
    }

    .auth-hero {
        padding: 6px 4px 0;
        text-align: center;
    }

    .auth-hero h1 {
        margin: 8px auto 4px;
        font-size: 28px;
        line-height: 1.04;
    }

    .auth-hero p {
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.45;
    }

    .security-grid {
        display: none;
    }

    .auth-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .helper-text {
        display: none;
    }
}

@media (max-width: 430px) {
    .auth-shell {
        width: min(100% - 16px, 520px);
    }

    .auth-hero h1 {
        font-size: 24px;
    }

    .auth-hero p {
        display: none;
    }

    .auth-panel {
        padding: 15px;
    }

    .tabs {
        margin-bottom: 14px;
    }

    .divider {
        margin: 18px 0;
    }

    .form-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
