/* ===============================
   CRECEFÁCIL AUTH
   Archivo: assets/css/auth.css
================================ */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 100%, rgba(30, 136, 255, .24), transparent 24%),
        radial-gradient(circle at 20% 20%, rgba(30, 136, 255, .14), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(122, 140, 165, .10), transparent 30%),
        #061224;
    overflow: hidden;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1E88FF;
    box-shadow: 0 0 18px rgba(30, 136, 255, .9);
}

.node-1 {
    left: 8%;
    top: 36%;
}

.node-2 {
    left: 18%;
    top: 66%;
}

.node-3 {
    right: 15%;
    top: 24%;
}

.node-4 {
    right: 8%;
    top: 52%;
}

.line {
    position: absolute;
    height: 1px;
    background: rgba(30, 136, 255, .22);
    transform-origin: left center;
}

.line-1 {
    width: 360px;
    left: 2%;
    top: 48%;
    transform: rotate(30deg);
}

.line-2 {
    width: 420px;
    right: 2%;
    top: 36%;
    transform: rotate(-35deg);
}

.line-3 {
    width: 520px;
    left: 55%;
    bottom: 22%;
    transform: rotate(18deg);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 20px;
    position: relative;
    z-index: 2;
}

.auth-card {
    width: 100%;
    max-width: 575px;
    padding: 48px 58px 42px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(16, 36, 58, .90), rgba(8, 22, 37, .96));
    border: 1px solid rgba(122, 140, 165, .38);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, .38),
        inset 0 0 80px rgba(30, 136, 255, .05);
    text-align: center;
}

.register-card {
    max-width: 610px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 46px;
    width: auto;
}

.auth-logo-icon {
    font-size: 45px;
    line-height: 1;
}

.auth-logo strong {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -1px;
}

.auth-card h1 {
    color: #fff;
    font-size: 45px;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.auth-card > p {
    color: #b8c5d6;
    font-size: 18px;
    margin-bottom: 32px;
}

.auth-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.input-group {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(8, 22, 37, .68);
    border: 1px solid rgba(122, 140, 165, .38);
    transition: .2s;
}

.input-group:focus-within {
    border-color: rgba(30, 136, 255, .75);
    box-shadow: 0 0 0 4px rgba(30, 136, 255, .12);
}

.input-group span {
    color: #9FAFC4;
    font-size: 25px;
    width: 28px;
    text-align: center;
}

.input-group input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #E0E1DE;
    font-size: 18px;
}

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

.eye-btn {
    border: none;
    background: transparent;
    color: #9FAFC4;
    font-size: 24px;
    cursor: pointer;
    width: auto;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #d4deeb;
    margin: 8px 0 6px;
    font-size: 16px;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-options input,
.terms-check input {
    width: 22px;
    height: 22px;
    accent-color: #1E88FF;
}

.auth-options a,
.auth-bottom-text a,
.terms-check a {
    color: #48a0ff;
    font-weight: 800;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d4deeb;
    line-height: 1.4;
    margin: 4px 0 2px;
}

.auth-submit {
    height: 64px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff, #dbeafe);
    color: #0B1C2C;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 0 32px rgba(30, 136, 255, .35);
    margin-top: 4px;
}

.auth-submit:hover {
    transform: translateY(-2px);
}

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

.auth-divider span {
    flex: 1;
    height: 1px;
    background: rgba(122, 140, 165, .32);
}

.auth-divider b {
    font-weight: 600;
}

.auth-bottom-text {
    margin: 0 !important;
    color: #d4deeb !important;
    font-size: 17px !important;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    text-align: left;
    font-weight: 700;
}

.auth-alert-error {
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(34, 197, 94, .14);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #86efac;
}

@media (max-width: 650px) {
    .auth-card {
        padding: 38px 22px 34px;
    }

    .auth-logo strong {
        font-size: 28px;
    }

    .auth-card h1 {
        font-size: 38px;
    }

    .auth-options {
        flex-direction: column;
    }

    .input-group {
        min-height: 62px;
    }

    .input-group input {
        font-size: 16px;
    }
}