/* ==========================================================
   RESET
========================================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
    background:#edf2f7;
    overflow-x:hidden;
    color:#2d3748;
    animation:fadeIn .5s ease;
}

/* ==========================================================
   HEADER
========================================================== */

.header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:500;
    background:#ffffff;
    height:78px;
    display:flex;
    align-items:center;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.header-inner{
    width:95%;
    max-width:1500px;
    margin:auto;
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

.logo img{
    height:52px;
    transition:.3s;
}

.logo img:hover{
    transform:scale(1.03);
}

/* ==========================================================
   HERO
========================================================== */

.hero{
    position:relative;
    height:100vh;
    width:100%;
    overflow:hidden;
    display:flex;
    align-items:center;
}

.hero-image{
    position:absolute;
    inset:0;
    z-index:1;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    z-index:2;

    background:linear-gradient(
        90deg,
        rgba(8,18,30,.75) 0%,
        rgba(8,18,30,.45) 40%,
        rgba(255,255,255,.05) 100%
    );
}

/* ==========================================================
   HERO TEXT
========================================================== */

.hero-caption{
    position:absolute;
    left:8%;
    top:50%;
    transform:translateY(-50%);
    color:white;
    width:520px;
    z-index:20;
}

.hero-caption h1{
    font-size:52px;
    font-weight:700;
    line-height:1.15;
    margin-bottom:20px;
}

.hero-caption p{
    font-size:18px;
    line-height:1.8;
    opacity:.95;
}

/* ==========================================================
   STATS
========================================================== */

.hero-stats{
    display:flex;
    gap:25px;
    margin-top:45px;
}

.stat{
    backdrop-filter:blur(18px);
    background:rgba(255,255,255,.15);
    padding:20px;
    border-radius:18px;
    min-width:120px;
    text-align:center;
    border:1px solid rgba(255,255,255,.25);
}

.stat h3{
    font-size:26px;
    color:#fff;
    margin-bottom:5px;
}

.stat span{
    color:white;
    opacity:.9;
    font-size:14px;
}

/* ==========================================================
   REGISTER WRAPPER & MODULE
========================================================== */

.login-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 860px;
    height: calc(100vh - 120px);
    padding: 0;
    z-index: 10;
}

/* ==========================================================
   REGISTER MODULE (RESTORING CARD EDGES FOR THE FLOATING LOOK)
========================================================== */
.login-module {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;

    /* GLASSMORPHISM BASE */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.15);
    animation: none;
}

.login-card {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 60px 80px;
    height: 100%;
    min-height: 520px;
    overflow-y: auto;
}

/* ==========================================================
   REGISTER CARD
========================================================== */

/* Spacing fix for headings */
.card-top {
    text-align: center;
    margin-bottom: 16px;
}
.card-logo{
    width:90px;
    margin-bottom:20px;
}

.card-top h2 {
    font-size: 32px;
    font-weight: 700;
    color: #3EB2B3;
    margin-bottom: 10px;
}

.card-top p{
    color:#000000;
    font-size:16px;
}

/* ==========================================================
   FORM & INPUT BOX
========================================================== */

#registerForm{
    width:100%;
}

.field{
    margin-bottom:20px;
}

.field-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 24px;
    margin-bottom:14px;
}

.field-row .field{
    margin-bottom:0;
}

.field label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:600;
    color:#3EB2B3;
}

.input{
    display:flex;
    align-items:center;
    height:54px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    overflow:hidden;
    background:#f8fafc;
    transition: all .30s ease;
}

.input.textarea-input{
    height:auto;
    align-items:flex-start;
}

.input:hover{
    border-color:#3EB2B3;
}

.input:focus-within{
    border-color:#0d9db3;
    box-shadow: 0 0 0 4px rgba(13,157,179,.15);
    background:white;
}

.input i{
    width:54px;
    text-align:center;
    color:#000000;
    font-size:18px;
}

.input.textarea-input i{
    padding-top:16px;
}

.input input{
    flex:1;
    height:100%;
    border:none;
    outline:none;
    background:none;
    padding-right:18px;
    font-size:15px;
    color:#000000;
}

.input input::placeholder{
    color:#000000;
}

.input textarea{
    flex:1;
    border:none;
    outline:none;
    background:none;
    padding:14px 18px 14px 0;
    font-size:15px;
    color:#000000;
    resize:vertical;
    font-family:inherit;
}

.input textarea::placeholder{
    color:#000000;
}

/* ==========================================================
   REGISTER BUTTON
========================================================== */

.login-button{
    width:100%;
    height:54px;
    border:none;
    border-radius:14px;
    background: linear-gradient(90deg, #00a7c0, #3EB2B3);
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    box-shadow: 0 12px 25px rgba(13,157,179,.25);
    transition: all .30s ease;
}

.login-button:hover{
    transform:translateY(-3px);
    box-shadow: 0 35px 90px rgba(0,0,0,.28), 0 10px 30px rgba(0,0,0,.10);
}

.login-button:active{
    transform:scale(.98);
}

/* ==========================================================
   DIVIDER & SIGN IN LINK
========================================================== */

.divider{
    display:flex;
    align-items:center;
    margin:16px 0;
}

.divider::before,
.divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#000000;
}

.divider span{
    padding:0 18px;
    color:#000000;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.register-section{
    text-align:center;
}

.register-section p{
    color:#000000;
    margin-bottom:8px;
}

.register-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:44px;
    border-radius:14px;
    border:2px solid #3eb2b3;
    color:#000000;
    text-decoration:none;
    font-weight:600;
    transition: all .30s ease;
}

.register-btn:hover{
    background:linear-gradient(90deg, #00a7c0, #3EB2B3);
    color:white;
    box-shadow: 0 15px 35px rgba(13,157,179,.20);
}

/* ==========================================================
   ALERTS
========================================================== */

.error{
    background:#fef2f2;
    border:1px solid #fecaca;
    color:#b91c1c;
    border-radius:12px;
    padding:14px 18px;
    margin-bottom:24px;
    font-size:14px;
}

.success{
    background:#f0fdf4;
    border:1px solid #bbf7d0;
    color:#15803d;
    border-radius:12px;
    padding:14px 18px;
    margin-bottom:24px;
    font-size:14px;
}

/* ==========================================================
   FOOTER & UTILITIES
========================================================== */

.login-footer {
    position: absolute;
    bottom: 25px;
    left: 8%;
    z-index: 25;
}

.footer-content {
    color: white;
    font-size: 14px;
    opacity: .85;
    text-align: left;
}

.glass{
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

/* ==========================================================
   CUSTOM SCROLLBAR
========================================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#eef2f7;
}

::-webkit-scrollbar-thumb{
    background:#0d9db3;
    border-radius:30px;
}

::-webkit-scrollbar-thumb:hover{
    background:#087f91;
}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes floating{
    0%   { transform:translateY(0px); }
    50%  { transform:translateY(-8px); }
    100% { transform:translateY(0px); }
}

input:-webkit-autofill{
    -webkit-box-shadow:0 0 0 1000px white inset;
    -webkit-text-fill-color:#000000;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1280px){

    .hero-caption{
        width:380px;
    }

    .hero-caption h1{
        font-size:42px;
    }

    .login-wrapper{
        max-width:700px;
    }

    .login-card{
        padding:40px;
    }

}

@media (max-width: 1024px){

    .hero-caption{
        display:none;
    }

    .login-wrapper{

        position:relative;

        left:auto;
        right:auto;
        top:auto;

        transform:none;

        width:100%;

        max-width:760px;

        margin:110px auto 40px;

        padding:0 20px;

    }

    .hero{

        min-height:100vh;
        height:auto;

    }

    .login-module{

        width:100%;

    }

}

/* ==========================================================
   MOBILE (768px and below)
========================================================== */

@media (max-width:768px){

    body{
        background:#edf2f7;
    }

    .hero{

        display:block;

        min-height:100dvh;

        height:auto;

        overflow:visible;

        padding-top:80px;
        padding-bottom:30px;

    }

    .hero-image{

        position:fixed;

        inset:0;

    }

    .hero-image img{

        object-position:center;
    }

    .hero-overlay{

        background:rgba(8,18,30,0);

    }

    .hero-caption{

        display:none;

    }

    .login-wrapper{

        position:relative;

        top:auto;
        right:auto;
        left:auto;

        transform:none;

        width:100%;

        max-width:460px;

        height:auto;

        margin:0 auto;

        padding:15px;

    }

    .login-module{

        flex-direction:column;

        border-radius:22px;

        overflow:hidden;

        backdrop-filter:blur(18px);

    }

    .login-card{

        height:auto;

        min-height:auto;

        padding:30px 22px;

    }

    .field-row{

        grid-template-columns:1fr;

        gap:0;

    }

    .card-logo{

        width:70px;

    }

    .card-top{

        margin-bottom:20px;

    }

    .card-top h2{

        font-size:26px;

    }

    .card-top p{

        font-size:14px;

    }

    .field{

        margin-bottom:16px;

    }

    .field label{

        font-size:13px;

    }

    .input{

        height:52px;

    }

    .input i{

        width:48px;

        font-size:16px;

    }

    .input input{

        font-size:15px;

    }

    .login-button{

        height:52px;

        font-size:15px;

    }

    .register-btn{

        height:50px;

    }

    .login-footer{

        position:relative;

        left:auto;

        bottom:auto;

        margin:20px 0;

        text-align:center;

    }

    .footer-content{

        text-align:center;

    }

}

/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width:480px){

    .header{

        height:64px;

    }

    .header-inner{

        justify-content:center;

    }

    .logo img{

        height:38px;

    }

    .login-wrapper{

        padding:10px;

    }

    .login-card{

        padding:22px 16px;

    }

    .card-logo{

        width:60px;

    }

    .card-top h2{

        font-size:22px;

    }

    .card-top p{

        font-size:13px;

    }

    .input{

        height:48px;

    }

    .login-button{

        height:48px;

    }

    .register-btn{

        height:46px;

    }

}

@media (max-width: 576px){

    .header{

        height:70px;

    }

    .logo img{

        height:42px;

    }

    .login-wrapper{

        margin-top:85px;

        padding:10px;

    }

    .login-card{

        padding:25px 18px;

    }

    .card-top h2{

        font-size:24px;

    }

    .card-top p{

        font-size:14px;

    }

    .field{

        margin-bottom:16px;

    }

    .input{

        height:50px;

    }

    .input i{

        width:48px;

        font-size:16px;

    }

    .input input{

        font-size:14px;

    }

    .login-button{

        height:50px;

        font-size:15px;

    }

    .register-btn{

        height:48px;

    }

}

@media (max-width: 400px){

    .card-top h2{

        font-size:22px;

    }

    .card-logo{

        width:60px;

    }

}
