:root {
    --red: #d71920;
    --red-dark: #a90f16;
    --red-soft: #fff0f1;
    --text: #23252f;
    --muted: #6f7482;
    --line: #e5e8ef;
    --bg: #f7f8fb;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(20, 25, 40, 0.13);
    --shadow-soft: 0 16px 40px rgba(20, 25, 40, 0.08);
    --radius: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(215, 25, 32, 0.08), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(215, 25, 32, 0.06), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f7f8fb 48%, #ffffff 100%);
    color: var(--text);
}

a {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    color: var(--red-dark);
}

.login-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    position: relative;
    width: min(1180px, 100%);
    min-height: 720px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 232, 239, 0.9);
    border-radius: 36px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

.decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.decor-one {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--red), #ef5960);
    border-radius: 50%;
    top: -170px;
    right: 320px;
    opacity: 0.92;
}

.decor-two {
    width: 460px;
    height: 210px;
    background: linear-gradient(135deg, var(--red), #ef3e46);
    border-radius: 999px 999px 0 0;
    bottom: -110px;
    left: -95px;
    transform: rotate(8deg);
    opacity: 0.97;
}

.decor-dots {
    width: 260px;
    height: 260px;
    right: 30px;
    bottom: 25px;
    opacity: 0.45;
    background-image: radial-gradient(rgba(215, 25, 32, 0.22) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
}

.login-info,
.login-card-area,
.login-footer {
    position: relative;
    z-index: 1;
}

.login-info {
    padding: 58px 48px 74px;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 28px;
    align-items: center;
}

.brand-mobile {
    display: none;
}

.welcome-photo {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.photo-card {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 26px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.04)),
        linear-gradient(145deg, #ffffff 0%, #f1f2f6 100%);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 232, 239, 0.86);
}

.photo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(215, 25, 32, 0.1), transparent 32%),
        linear-gradient(180deg, transparent 55%, rgba(215, 25, 32, 0.13));
}

.student-illustration {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: 160px;
    height: 330px;
}

.student-face {
    position: absolute;
    top: 0;
    left: 44px;
    width: 76px;
    height: 76px;
    background: #f2c6a8;
    border-radius: 50%;
    box-shadow: inset -10px -4px rgba(166, 87, 58, 0.15);
}

.student-face::before {
    content: "";
    position: absolute;
    width: 94px;
    height: 86px;
    left: -9px;
    top: -18px;
    border-radius: 50% 50% 42% 42%;
    background: #3a2524;
    z-index: -1;
}

.student-body {
    position: absolute;
    top: 80px;
    left: 24px;
    width: 116px;
    height: 210px;
    background: linear-gradient(160deg, #42678f, #213d61);
    border-radius: 46px 46px 28px 28px;
}

.student-body::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 8px;
    width: 84px;
    height: 150px;
    border-radius: 34px 34px 20px 20px;
    background: #ffffff;
}

.book {
    position: absolute;
    right: -2px;
    top: 145px;
    width: 92px;
    height: 125px;
    background: linear-gradient(145deg, var(--red), #f04b52);
    border-radius: 10px;
    box-shadow: 0 18px 30px rgba(170, 15, 22, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transform: rotate(-7deg);
}

.book strong {
    font-size: 28px;
    letter-spacing: 1px;
}

.book span {
    font-size: 11px;
    letter-spacing: 3px;
}

.info-content {
    max-width: 430px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--red);
    border-radius: 999px;
}

.info-content h1 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
}

.info-content h1 span {
    display: block;
    color: var(--red);
}

.subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    gap: 10px;
    margin-bottom: 34px;
}

.role-card {
    min-height: 88px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 232, 239, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(20, 25, 40, 0.06);
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.role-card:hover {
    transform: translateY(-3px);
    border-color: rgba(215, 25, 32, 0.35);
}

.role-icon {
    width: 36px;
    height: 36px;
    background: var(--red-soft);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
}

.role-card span {
    font-size: 13px;
    font-weight: 800;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid rgba(229, 232, 239, 0.95);
    box-shadow: 0 10px 24px rgba(20, 25, 40, 0.08);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.feature-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-card-area {
    padding: 58px 58px 74px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(430px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 232, 239, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(20, 25, 40, 0.15);
    padding: 44px 42px 38px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-bottom: 26px;
}

.brand-logo span {
    color: var(--red);
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-logo small {
    color: #777b87;
    font-size: 18px;
    letter-spacing: 0.38em;
    margin-left: 8px;
    margin-top: 8px;
}

.login-user-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border: 2px solid var(--red);
    border-radius: 50%;
    position: relative;
}

.login-user-icon::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid var(--red);
    border-radius: 50%;
    top: 11px;
    left: 18px;
    background: white;
}

.login-user-icon::after {
    content: "";
    position: absolute;
    width: 52px;
    height: 26px;
    border: 2px solid var(--red);
    border-top: 0;
    border-radius: 0 0 28px 28px;
    left: 10px;
    bottom: 10px;
}

.login-user-icon span {
    position: absolute;
    width: 42px;
    height: 4px;
    background: var(--red);
    border-radius: 999px;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
}

.login-card h2 {
    text-align: center;
    font-size: 25px;
    margin-top: 26px;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.login-description {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #3a3d48;
}

.input-box {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box:focus-within {
    border-color: rgba(215, 25, 32, 0.65);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.08);
}

.input-box span {
    font-size: 17px;
}

.input-box input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
}

.input-box input::placeholder {
    color: #a1a6b3;
}

.eye-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.72;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 8px 0 24px;
    font-size: 13px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--red);
}

.btn-login {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    font-size: 17px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(215, 25, 32, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(215, 25, 32, 0.32);
}

.create-account {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.login-footer {
    position: absolute;
    bottom: 23px;
    left: 0;
    right: 0;
    text-align: center;
    color: #747986;
    font-size: 12px;
}

/* Tablets */
@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-info {
        padding: 42px 34px 20px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .welcome-photo {
        display: none;
    }

    .info-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .eyebrow {
        justify-content: center;
    }

    .role-grid {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        max-width: 650px;
        margin: 0 auto;
        text-align: left;
    }

    .login-card-area {
        padding: 20px 34px 78px;
    }
}

/* Celular */
@media (max-width: 680px) {
    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-shell {
        min-height: 100vh;
        width: 100%;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        overflow: auto;
    }

    .decor-one {
        width: 170px;
        height: 170px;
        top: -110px;
        right: -50px;
    }

    .decor-two {
        width: 320px;
        height: 150px;
        bottom: -95px;
        left: -150px;
    }

    .decor-dots {
        right: -80px;
        bottom: 180px;
    }

    .login-info {
        padding: 28px 20px 0;
        display: block;
    }

    .brand-mobile {
        display: block;
        margin-bottom: 22px;
    }

    .brand-mobile .brand-logo {
        margin-bottom: 0;
    }

    .brand-mobile .brand-logo span {
        font-size: 46px;
    }

    .brand-mobile .brand-logo small {
        font-size: 14px;
    }

    .desktop-logo {
        display: none;
    }

    .eyebrow {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .info-content h1 {
        font-size: 31px;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .role-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
        margin-bottom: 22px;
    }

    .role-card {
        min-height: 72px;
        border-radius: 14px;
    }

    .role-icon {
        width: 31px;
        height: 31px;
        border-radius: 10px;
        font-size: 16px;
    }

    .role-card span {
        font-size: 11px;
    }

    .feature-list {
        display: none;
    }

    .login-card-area {
        padding: 18px 16px 74px;
    }

    .login-card {
        padding: 30px 20px 26px;
        border-radius: 24px;
        box-shadow: 0 18px 46px rgba(20, 25, 40, 0.12);
    }

    .login-user-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 12px;
    }

    .login-user-icon::before {
        width: 28px;
        height: 28px;
        top: 9px;
        left: 15px;
    }

    .login-user-icon::after {
        width: 42px;
        height: 21px;
        left: 8px;
        bottom: 8px;
    }

    .login-card h2 {
        font-size: 22px;
        margin-top: 23px;
    }

    .login-description {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .input-group {
        margin-bottom: 14px;
    }

    .input-box {
        height: 52px;
        border-radius: 13px;
    }

    .login-options {
        align-items: flex-start;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .btn-login {
        height: 54px;
        border-radius: 14px;
    }

    .create-account {
        font-size: 13px;
        margin-top: 20px;
    }

    .login-footer {
        bottom: 18px;
        font-size: 11px;
        padding: 0 20px;
    }
}

/* Celulares muito pequenos */
@media (max-width: 390px) {
    .role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-content h1 {
        font-size: 28px;
    }

    .login-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* Cadastro */

.cadastro-shell {
    min-height: 760px;
}

.cadastro-info {
    grid-template-columns: 1fr;
    padding-left: 68px;
}

.cadastro-info-content {
    max-width: 520px;
}

.cadastro-card {
    padding-top: 36px;
}

.cadastro-card .brand-logo {
    margin-bottom: 18px;
}

.cadastro-card .brand-logo span {
    font-size: 50px;
}

.cadastro-card .brand-logo small {
    font-size: 15px;
}

.cadastro-user-icon {
    width: 64px;
    height: 64px;
}

.cadastro-user-icon::before {
    width: 30px;
    height: 30px;
    top: 9px;
    left: 15px;
}

.cadastro-user-icon::after {
    width: 44px;
    height: 22px;
    left: 8px;
    bottom: 8px;
}

.alert {
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.45;
}

.alert-error {
    color: #9b1118;
    background: #fff0f1;
    border: 1px solid rgba(215, 25, 32, 0.22);
}

.alert-success {
    color: #17643b;
    background: #ecfff5;
    border: 1px solid rgba(23, 100, 59, 0.2);
}

@media (max-width: 1050px) {
    .cadastro-info {
        padding-left: 34px;
    }

    .cadastro-info-content {
        max-width: 720px;
    }
}

@media (max-width: 680px) {
    .cadastro-shell {
        min-height: 100vh;
    }

    .cadastro-info {
        padding-left: 20px;
    }

    .cadastro-feature-list {
        display: none;
    }

    .cadastro-card {
        padding-top: 30px;
    }
}