/* SR Music Group authentication — index-aligned visual system */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --auth-red: #ff0033;
    --auth-red-dark: #cc0029;
    --auth-black: #0f0f0f;
    --auth-muted: #666666;
    --auth-border: #e3e3e3;
    --auth-surface: #ffffff;
    --auth-soft: #f7f7f7;
    --auth-success: #059669;
    --auth-error: #dc2626;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    color: var(--auth-black);
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 0, 51, 0.08), transparent 26%),
        radial-gradient(circle at 92% 88%, rgba(255, 0, 51, 0.05), transparent 24%),
        #f4f4f4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10;
    background: linear-gradient(90deg, var(--auth-red), #ff5b7c, var(--auth-red));
}

button,
input,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: min(100%, 1160px);
    margin: auto;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
    min-height: 650px;
    border: 1px solid #dddddd;
    border-radius: 28px;
    background: var(--auth-surface);
    box-shadow: 0 30px 80px rgba(15, 15, 15, 0.12);
    overflow: hidden;
}

.signup-page .auth-shell {
    min-height: 760px;
}

.auth-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(38px, 5vw, 62px);
    color: #ffffff;
    background:
        radial-gradient(circle at 5% 2%, rgba(255, 0, 51, 0.3), transparent 32%),
        linear-gradient(145deg, #080808, #191919);
    overflow: hidden;
}

.auth-showcase::before {
    content: "SR";
    position: absolute;
    right: -24px;
    bottom: -38px;
    z-index: -1;
    color: rgba(255, 255, 255, 0.025);
    font-size: clamp(11rem, 21vw, 19rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.12em;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    align-self: flex-start;
    color: #ffffff;
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: -0.045em;
}


.showcase-copy {
    max-width: 510px;
    margin: 34px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-red);
    box-shadow: 0 0 0 5px rgba(255, 0, 51, 0.14);
}

.showcase-copy h1 {
    color: #ffffff;
    font-size: clamp(2.35rem, 4.2vw, 4rem);
    font-weight: 850;
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.showcase-copy h1 em {
    color: var(--auth-red);
    font-style: normal;
}

.showcase-copy > p {
    max-width: 480px;
    margin: 16px 0 20px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.75;
}

.showcase-points {
    display: grid;
    gap: 6px;
}

.showcase-points span {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
    font-weight: 650;
}

.showcase-points i {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: var(--auth-red);
    background: rgba(255, 255, 255, 0.055);
}

.showcase-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.66rem;
    font-weight: 700;
}

.showcase-footer i {
    color: rgba(255, 255, 255, 0.62);
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: clamp(38px, 5vw, 66px);
    background: #ffffff;
}

.signup-page .auth-card {
    justify-content: flex-start;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 32px;
    color: #777777;
    font-size: 0.7rem;
    font-weight: 750;
}

.back-home:hover {
    color: var(--auth-red);
}

.auth-header {
    margin-bottom: 28px;
    text-align: left;
}


.auth-header h2 {
    margin-bottom: 7px;
    color: var(--auth-black);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.auth-header p {
    max-width: 440px;
    color: var(--auth-muted);
    font-size: 0.82rem;
}

.auth-form {
    width: 100%;
}

.signup-page .auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.signup-page .form-options,
.signup-page .auth-btn,
.signup-page .auth-footer,
.signup-page .error-message,
.signup-page .success-message {
    grid-column: 1 / -1;
}

.form-group {
    min-width: 0;
    margin-bottom: 17px;
}

.signup-page .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #303030;
    font-size: 0.69rem;
    font-weight: 800;
}

.form-group label i {
    color: var(--auth-red);
    font-size: 0.68rem;
}

.form-group input {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    outline: none;
    color: var(--auth-black);
    background: var(--auth-soft);
    font-size: 0.84rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9a9a9a;
}

.form-group input:focus {
    border-color: var(--auth-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.08);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #888888;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--auth-red);
    background: rgba(255, 0, 51, 0.06);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 20px;
}

.remember-me,
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--auth-muted);
    font-size: 0.73rem;
    cursor: pointer;
}

.remember-me input,
.terms-checkbox input {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--auth-red);
}

.forgot-link,
.terms-checkbox a,
.auth-footer a {
    color: var(--auth-red);
    font-weight: 750;
}

.forgot-link {
    font-size: 0.73rem;
}

.forgot-link:hover,
.terms-checkbox a:hover,
.auth-footer a:hover {
    color: var(--auth-red-dark);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--auth-red);
    box-shadow: 0 13px 28px rgba(255, 0, 51, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
    background: var(--auth-red-dark);
    box-shadow: 0 16px 32px rgba(204, 0, 41, 0.25);
    transform: translateY(-2px);
}

.auth-btn:disabled {
    opacity: 0.68;
    cursor: wait;
    transform: none;
}

.auth-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

.auth-footer p {
    color: var(--auth-muted);
    font-size: 0.73rem;
}

.error-message,
.success-message {
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 0.76rem !important;
}

@media (max-width: 900px) {
    body {
        padding: 18px;
    }

    .auth-container {
        max-width: 720px;
    }

    .auth-shell,
    .signup-page .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-showcase {
        min-height: 310px;
        padding: 30px 34px;
    }

    .showcase-copy {
        margin: 36px 0 12px;
    }

    .showcase-copy h1 {
        font-size: 2.35rem;
    }

    .showcase-copy > p {
        margin: 16px 0 20px;
    }

    .showcase-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .showcase-points span {
        align-items: flex-start;
        font-size: 0.64rem;
    }

    .showcase-footer {
        display: none;
    }

    .auth-card {
        padding: 38px 34px 44px;
    }
}

@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 10px;
    }

    .auth-shell {
        border-radius: 20px;
    }

    .auth-showcase {
        min-height: 230px;
        padding: 24px 22px;
    }

    .showcase-copy {
        margin: 28px 0 0;
    }

    .auth-eyebrow {
        margin-bottom: 13px;
    }

    .showcase-copy h1 {
        font-size: 1.9rem;
    }

    .showcase-copy > p {
        margin: 13px 0 0;
        font-size: 0.73rem;
        line-height: 1.6;
    }

    .showcase-points {
        display: none;
    }

    .auth-card {
        padding: 28px 20px 32px;
    }

    .back-home {
        margin-bottom: 24px;
    }

    .auth-header {
        margin-bottom: 23px;
    }


    .auth-header h2 {
        font-size: 1.75rem;
    }

    .form-group input {
        min-height: 48px;
        font-size: 16px;
    }

    .signup-page .auth-form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .signup-page .form-group {
        margin-bottom: 15px;
    }

    .signup-page .form-options,
    .signup-page .auth-btn,
    .signup-page .auth-footer,
    .signup-page .error-message,
    .signup-page .success-message {
        grid-column: 1;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-height: 720px) and (min-width: 901px) {
    body {
        align-items: flex-start;
    }

    .auth-shell {
        min-height: 620px;
    }
}
