﻿/* ===== Auth pages – modern glass + aurora (no external deps) ===== */
.auth-wrap {
    position: relative;
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem;
    overflow: hidden;
    isolation: isolate
}

    .auth-wrap::before, .auth-wrap::after {
        content: "";
        position: absolute;
        z-index: -1;
        width: 60vmax;
        height: 60vmax;
        border-radius: 50%;
        filter: blur(70px);
        opacity: .55;
        animation: drift 18s ease-in-out infinite alternate
    }

    .auth-wrap::before {
        background: radial-gradient(circle,var(--secondary-color),transparent 65%);
        top: -25vmax;
        inset-inline-start: -15vmax
    }

    .auth-wrap::after {
        background: radial-gradient(circle,var(--accent-color),transparent 65%);
        bottom: -28vmax;
        inset-inline-end: -18vmax;
        animation-delay: -9s;
        opacity: .4
    }

@keyframes drift {
    to {
        transform: translate(8vmax,6vmax) scale(1.15)
    }
}

.register-container {
    width: 100%;
    max-width: 440px;
    margin: 0;
    padding: 0
}

.register-card {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    box-shadow: 0 30px 70px -20px rgba(91,88,245,.35),0 2px 0 rgba(255,255,255,.9) inset;
    overflow: hidden;
    animation: rise .6s cubic-bezier(.2,.8,.2,1) both
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98)
    }
}

.register-header {
    text-align: center;
    padding: 2.2rem 2rem 0;
    background: none
}

    .register-header::before {
        display: none
    }

.register-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 20px;
    place-items: center;
    background: linear-gradient(135deg,var(--secondary-color),var(--accent-color));
    box-shadow: 0 12px 28px -8px var(--accent-color);
    transform: rotate(-6deg)
}

    .register-icon svg {
        width: 30px;
        height: 30px;
        stroke: #fff;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.register-header h5 {
    margin: 0 0 .4rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-color)
}

.register-header p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.9;
    font-weight: 500;
    color: var(--content-color);
    opacity: 1
}

    .register-header p strong {
        direction: ltr;
        unicode-bidi: embed;
        color: var(--accent-color);
        font-weight: 800;
        padding: 0 .25rem
    }

.register-body {
    padding: 1.8rem 2rem 2rem
}

.form-label {
    display: block;
    margin-bottom: .45rem;
    font-size: .92rem;
    font-weight: 700;
    color: var(--title-color)
}

.input-icon {
    position: relative;
    margin-bottom: 1.2rem
}

    .input-icon::before {
        content: "";
        position: absolute;
        inset-inline-start: 16px;
        top: 26px;
        width: 20px;
        height: 20px;
        transform: translateY(-50%);
        background: var(--content-color);
        opacity: .6;
        transition: .25s;
        -webkit-mask: var(--ic) center/contain no-repeat;
        mask: var(--ic) center/contain no-repeat;
        pointer-events: none
    }

    .input-icon:focus-within::before {
        background: var(--accent-color);
        opacity: 1
    }

.ic-user {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E")
}

.ic-phone {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E")
}

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 3rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255,255,255,.85);
    border: 1.5px solid #e3e5ee;
    border-radius: 14px;
    margin: 0;
    transition: border-color .2s,box-shadow .2s,background .2s
}

    .form-control::placeholder {
        color: #a3a8b8;
        font-weight: 500
    }

    .form-control:focus {
        outline: 0;
        background: #fff;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px var(--accent-light-color)
    }

.input-icon .text-danger {
    display: block;
    margin-top: .35rem;
    font-size: .8rem
}

.form-control[type=tel] {
    direction: ltr;
    text-align: right
}

.form-control.otp {
    height: 64px;
    padding: 0;
    direction: ltr;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: .7em;
    text-indent: .7em
}

.otp-wrap .input-icon::before {
    display: none
}

.btn-login-page, #resendBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    height: 54px;
    margin: .4rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s,box-shadow .2s
}

.btn-login-page {
    color: #fff;
    background: linear-gradient(135deg,var(--secondary-color),var(--accent-color));
    box-shadow: 0 12px 24px -10px var(--accent-color)
}

    .btn-login-page::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);
        transform: translateX(120%);
        transition: transform .7s
    }

    .btn-login-page:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 28px -10px var(--accent-color)
    }

        .btn-login-page:hover::after {
            transform: translateX(-120%)
        }

    .btn-login-page:active {
        transform: scale(.98)
    }

    .btn-login-page svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transform: scaleX(-1)
    }

#resendBtn {
    color: var(--accent-color);
    background: var(--accent-light-color);
    border: 1.5px solid transparent
}

    #resendBtn:hover {
        border-color: var(--accent-color)
    }

.btn:focus-visible, a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px
}

.login-link {
    margin-top: 1.4rem;
    text-align: center;
    font-size: .95rem;
    color: var(--content-color)
}

    .login-link a {
        color: var(--accent-color);
        font-weight: 800;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: border-color .2s
    }

        .login-link a:hover {
            border-color: var(--accent-color)
        }

.ring {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem
}

    .ring svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg)
    }

    .ring circle {
        fill: none;
        stroke-width: 5;
        stroke-linecap: round
    }

    .ring .track {
        stroke: #e3e5ee
    }

    .ring .bar {
        stroke: var(--accent-color);
        stroke-dasharray: 175.9;
        stroke-dashoffset: 0;
        transition: stroke-dashoffset 1s linear,stroke .3s
    }

    .ring.low .bar {
        stroke: var(--stop)
    }

    .ring b {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--title-color);
        font-variant-numeric: tabular-nums
    }

.timer-note {
    text-align: center;
    margin: 0 0 1.2rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--content-color)
}

    .timer-note.expired {
        color: var(--stop)
    }

.verify-foot {
    margin-top: 1rem;
    text-align: center
}

.spinner-border {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

.is-loading .spinner-border {
    display: block
}

.is-loading .btn-txt {
    display: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.text-danger {
    color: var(--stop) !important
}

.alert-msg {
    padding: .7rem .9rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--stop-soft);
    color: var(--stop);
    font-size: .9rem;
    font-weight: 600
}

@media (max-width:480px) {
    .register-body {
        padding: 1.4rem 1.2rem 1.6rem
    }

    .register-header {
        padding: 1.8rem 1.2rem 0
    }
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important
    }
}

/*.register-container {
    text-align: justify;
    width: 40%;
    max-width: 1000px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.register-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #e9e9e9 0%, #757575 100%);
    padding: 20px;
    text-align: center;
    position: relative;
}

    .register-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        opacity: 0.5;
    }

.register-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    
}

    .register-icon i {
        font-size: 3rem;
        color: var(--primary-color);
    }

.register-header h5 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    font-weight: 600;
}

.register-header p {
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    font-weight: 600;
}

.register-body {
    padding: 50px;
}

.form-section {
    margin-bottom: 35px;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: var(--accent-color);
        font-size: 1.5rem;
    }

.form-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 30px 30px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 0.2rem rgba(247, 164, 0, 0.15);
    }

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-color);
        font-size: 1.1rem;
    }

    .input-icon .form-control {
        padding-left: 50px;
    }

.password-toggle {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: var(--accent-color);
    }

.user-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.user-type-card {
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .user-type-card:hover {
        border-color: var(--accent-color);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .user-type-card input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

        .user-type-card input[type="radio"]:checked + label {
            color: var(--primary-color);
        }

        .user-type-card input[type="radio"]:checked ~ .user-type-icon {
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
            color: var(--primary-color);
        }

    .user-type-card.active {
        border-color: var(--accent-color);
        background: #fffef8;
    }

.user-type-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

    .user-type-icon i {
        font-size: 2rem;
        color: var(--primary-color);
    }

.user-type-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-type-desc {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1d7e 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
    margin:auto;
}

    .btn-login-page:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(20, 23, 108, 0.3);
    }

.login-link {
    text-align: center;
    margin-top: 25px;
    color: #6c757d;
    font-size: 1rem;
}

    .login-link a {
        color: var(--primary-color);
        font-weight: 700;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .login-link a:hover {
            color: var(--accent-color);
        }

.terms-checkbox {
    margin-top: 10px;
    margin-bottom: 35px;
    text-align: justify;
}

.form-check-input {
    position: unset !important;
    margin-top: unset !important;
    margin-left: unset !important;
}


.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-label {
    color: #6c757d;
}

    .form-check-label a {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
    }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 2px solid #e9ecef;
    }

    .divider span {
        padding: 0 20px;
        color: #6c757d;
        font-weight: 600;
    }

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-social:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

.btn-google {
    border-color: #db4437;
    color: #db4437;
}

    .btn-google:hover {
        background: #db4437;
        color: white;
    }

.btn-linkedin {
    border-color: #0077b5;
    color: #0077b5;
}

    .btn-linkedin:hover {
        background: #0077b5;
        color: white;
    }


@media screen and (max-width: 960px) {
    .register-container {
        width: 70%;
    }
}
@media screen and (max-width: 740px) {
    .register-container {
        width: 99%;
    }
}

.spinner-border {
    color: var(--accent-color);
}

#resendBtn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 18px 50px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
    margin: auto;
}*/