/* ===========================================================
   Alamin Online Academy
   Student Registration
   Version : 6.1 Enterprise
   Module  : Authentication / Registration
   =========================================================== */


/* ===========================================================
   RESET
=========================================================== */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;

}

body {

    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    color: #ffffff;

    background:
        url("../../images/backgrounds/login-bg.jpg")
        center center /
        cover
        no-repeat
        fixed;

}


/* ===========================================================
   BACKGROUND OVERLAY
=========================================================== */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    background:

        linear-gradient(
            135deg,
            rgba(15, 23, 42, .58),
            rgba(37, 99, 235, .22),
            rgba(2, 6, 23, .40)
        );

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

    z-index: -2;

}


/* ===========================================================
   REGISTER WRAPPER
=========================================================== */

.register-wrapper {

    width: 100%;

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 32px 20px;

}


/* ===========================================================
   CONTAINER
=========================================================== */

.register-container {

    width: 100%;

    max-width: 520px;

}


/* ===========================================================
   GLASS CARD
=========================================================== */

.register-card {

    position: relative;

    width: 100%;

    padding: 30px;

    overflow: hidden;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .19),
            rgba(255, 255, 255, .10)
        );

    border:
        1px solid
        rgba(255, 255, 255, .28);

    backdrop-filter: blur(22px);

    -webkit-backdrop-filter: blur(22px);

    box-shadow:

        0 25px 70px
        rgba(0, 0, 0, .30),

        inset 0 1px 0
        rgba(255, 255, 255, .20);

    animation:
        registerFadeUp .65s ease;

}


/* ===========================================================
   GLASS HIGHLIGHT
=========================================================== */

.register-card::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:

        linear-gradient(
            135deg,
            rgba(255, 255, 255, .11),
            transparent 38%,
            rgba(255, 255, 255, .035)
        );

}


/* ===========================================================
   TOP GLASS LIGHT
=========================================================== */

.register-card::after {

    content: "";

    position: absolute;

    top: -120px;
    right: -100px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(96, 165, 250, .20),
            transparent 70%
        );

    pointer-events: none;

}


/* ===========================================================
   BRAND
=========================================================== */

.brand {

    position: relative;

    z-index: 1;

    text-align: center;

    margin-bottom: 20px;

}


/* ===========================================================
   BRAND BADGE
=========================================================== */

.brand-badge {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

}


.version-badge,
.network-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 100px;

    height: 32px;

    padding: 0 14px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;

    color: #ffffff;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, .12);

}


.version-badge {

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

}


.network-badge {

    background:
        linear-gradient(
            135deg,
            #16a34a,
            #15803d
        );

}


/* ===========================================================
   LOGO
=========================================================== */

.logo-box {

    width: 118px;

    height: 118px;

    margin: 0 auto 18px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .09);

    border:
        1px solid
        rgba(255, 255, 255, .22);

    box-shadow:

        0 15px 35px
        rgba(0, 0, 0, .18),

        inset 0 1px 0
        rgba(255, 255, 255, .22);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    animation:
        logoFloat 4s ease-in-out infinite;

}


.brand-logo {

    width: 86px;

    height: 86px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 6px 12px
            rgba(0, 0, 0, .18)
        );

}


/* ===========================================================
   BRAND TEXT
=========================================================== */

.brand h1 {

    margin-bottom: 9px;

    color: #ffffff;

    font-size: 30px;

    font-weight: 750;

    letter-spacing: -.4px;

    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, .16);

}


.brand h3 {

    margin-bottom: 4px;

    color: #bfdbfe;

    font-size: 19px;

    font-weight: 600;

}


/* ===========================================================
   REGISTER HEADER
=========================================================== */

.register-header {

    position: relative;

    z-index: 1;

    text-align: center;

    margin-bottom: 24px;

}


.register-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 30px;

    padding: 6px 17px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, .25);

}


.register-header h2 {

    margin-top: 14px;

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 31px;

    font-weight: 750;

    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, .15);

}


.register-header p {

    color:
        rgba(255, 255, 255, .84);

    font-size: 14px;

    line-height: 1.75;

}


/* ===========================================================
   FORM
=========================================================== */

form {

    position: relative;

    z-index: 1;

}


.form-group {

    margin-bottom: 15px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 650;

}


/* ===========================================================
   INPUT GROUP
=========================================================== */

.input-group {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 56px;

    border-radius: 16px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, .095);

    border:
        1px solid
        rgba(255, 255, 255, .22);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .06);

    transition:
        .25s ease;

}


.input-group:hover {

    background:
        rgba(255, 255, 255, .12);

}


.input-group:focus-within {

    border-color:
        rgba(96, 165, 250, .90);

    background:
        rgba(255, 255, 255, .14);

    box-shadow:

        0 0 0 4px
        rgba(96, 165, 250, .15),

        inset 0 1px 0
        rgba(255, 255, 255, .10);

}


/* ===========================================================
   INPUT ICON
=========================================================== */

.input-icon {

    flex: 0 0 52px;

    width: 52px;

    height: 56px;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #ffffff;

    font-size: 17px;

    opacity: .95;

}


/* ===========================================================
   INPUT / SELECT
=========================================================== */

.input-group input,
.input-group select {

    flex: 1;

    width: 100%;

    height: 56px;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    padding:
        0 16px 0 0;

}


.input-group input::placeholder {

    color:
        rgba(255, 255, 255, .62);

}


.input-group select {

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;

}


.input-group select option {

    color: #111827;

    background: #ffffff;

}


/* ===========================================================
   PASSWORD BUTTON
=========================================================== */

.toggle-password {

    flex: 0 0 48px;

    width: 48px;

    height: 48px;

    margin-right: 4px;

    border: none;

    border-radius: 12px;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 17px;

    transition:
        .25s ease;

}


.toggle-password:hover {

    background:
        rgba(255, 255, 255, .12);

}


/* ===========================================================
   VALIDATION
=========================================================== */

.field-error {

    display: block;

    min-height: 17px;

    margin-top: 6px;

    color: #fecaca;

    font-size: 12px;

    font-weight: 500;

}


.input-group.error {

    border-color:
        rgba(220, 38, 38, .90);

    box-shadow:
        0 0 0 4px
        rgba(220, 38, 38, .13);

}


.input-group.success {

    border-color:
        rgba(22, 163, 74, .90);

    box-shadow:
        0 0 0 4px
        rgba(22, 163, 74, .12);

}


/* ===========================================================
   TERMS
=========================================================== */

.terms {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin:
        18px 0;

    color:
        rgba(255, 255, 255, .90);

    font-size: 13px;

    line-height: 1.65;

}


.terms input {

    flex: 0 0 auto;

    width: 17px;

    height: 17px;

    margin-top: 3px;

    accent-color: #2563eb;

    cursor: pointer;

}


.terms a {

    color: #bfdbfe;

    font-weight: 600;

    text-decoration: none;

}


.terms a:hover {

    color: #ffffff;

    text-decoration: underline;

}


/* ===========================================================
   REGISTER BUTTON
=========================================================== */

.register-btn {

    position: relative;

    width: 100%;

    height: 58px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    border: none;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, .32);

    transition:
        .30s ease;

}


.register-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 20px 45px
        rgba(37, 99, 235, .43);

}


.register-btn:active {

    transform:
        scale(.985);

}


.register-btn:disabled {

    opacity: .65;

    cursor: not-allowed;

    transform: none;

}


/* ===========================================================
   DIVIDER
=========================================================== */

.divider {

    display: flex;

    align-items: center;

    gap: 14px;

    margin: 20px 0;

}


.divider::before,
.divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background:
        rgba(255, 255, 255, .18);

}


.divider span {

    color:
        rgba(255, 255, 255, .72);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

}


/* ===========================================================
   GOOGLE BUTTON
=========================================================== */

.google-btn {

    width: 100%;

    height: 56px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    border-radius: 16px;

    border:
        1px solid
        rgba(255, 255, 255, .20);

    background:
        rgba(255, 255, 255, .10);

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 650;

    cursor: pointer;

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    transition:
        .30s ease;

}


.google-btn:hover {

    background:
        rgba(255, 255, 255, .17);

    border-color:
        rgba(255, 255, 255, .30);

    transform:
        translateY(-2px);

}


.google-btn:active {

    transform:
        scale(.985);

}


.google-icon {

    width: 22px;

    height: 22px;

    object-fit: contain;

}


/* ===========================================================
   LOGIN LINK
=========================================================== */

.login-link {

    position: relative;

    z-index: 1;

    margin-top: 20px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255, 255, 255, .13);

    text-align: center;

    color:
        rgba(255, 255, 255, .80);

    font-size: 14px;

}


.login-link a {

    margin-left: 6px;

    color: #bfdbfe;

    font-weight: 700;

    text-decoration: none;

    transition:
        .25s ease;

}


.login-link a:hover {

    color: #ffffff;

    text-decoration: underline;

}


/* ===========================================================
   ANIMATIONS
=========================================================== */

@keyframes logoFloat {

    0% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-7px);

    }

    100% {

        transform:
            translateY(0);

    }

}


@keyframes registerFadeUp {

    from {

        opacity: 0;

        transform:
            translateY(28px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* ===========================================================
   ACCESSIBILITY
=========================================================== */

::selection {

    background: #2563eb;

    color: #ffffff;

}


button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {

    outline:
        3px solid
        #60a5fa;

    outline-offset: 3px;

}


[hidden] {

    display: none !important;

}


/* ===========================================================
   TABLET
=========================================================== */

@media (max-width: 992px) {

    .register-wrapper {

        padding: 24px 18px;

    }

    .register-card {

        padding: 28px;

    }

}


/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width: 768px) {

    .register-wrapper {

        align-items: flex-start;

        padding:
            20px 14px 30px;

    }

    .register-container {

        max-width: 520px;

    }

    .register-card {

        padding:
            24px 18px;

        border-radius: 24px;

    }

    .logo-box {

        width: 102px;
        height: 102px;

    }

    .brand-logo {

        width: 74px;
        height: 74px;

    }

    .brand h1 {

        font-size: 25px;

    }

    .brand h3 {

        font-size: 18px;

    }

    .register-header h2 {

        font-size: 27px;

    }

}


/* ===========================================================
   SMALL MOBILE
=========================================================== */

@media (max-width: 480px) {

    .register-wrapper {

        padding:
            14px 10px 24px;

    }

    .register-card {

        padding:
            20px 14px;

        border-radius: 22px;

    }

    .brand-badge {

        gap: 8px;

    }

    .version-badge,
    .network-badge {

        min-width: auto;

        height: 30px;

        padding:
            0 10px;

        font-size: 11px;

    }

    .logo-box {

        width: 92px;
        height: 92px;

    }

    .brand-logo {

        width: 66px;
        height: 66px;

    }

    .brand h1 {

        font-size: 23px;

    }

    .register-header h2 {

        font-size: 25px;

    }

    .input-group,
    .input-group input,
    .input-group select {

        min-height: 54px;
        height: 54px;

    }

    .input-icon {

        width: 48px;
        flex-basis: 48px;
        height: 54px;

    }

    .register-btn,
    .google-btn {

        height: 54px;

    }

}


/* ===========================================================
   REDUCED MOTION
=========================================================== */

@media (prefers-reduced-motion: reduce) {

    * {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}


/* ===========================================================
   DARK MODE
=========================================================== */

body.dark-mode {

    background: #020617;

}


body.dark-mode::before {

    background:

        linear-gradient(
            135deg,
            rgba(2, 6, 23, .94),
            rgba(15, 23, 42, .88),
            rgba(30, 41, 59, .86)
        );

}


body.dark-mode .register-card {

    background:
        rgba(15, 23, 42, .58);

}


/* ===========================================================
   PRINT
=========================================================== */

@media print {

    body {

        display: none;

    }

}