@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body{
    background: #000;
    position: relative;
    overflow: hidden;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: bgSlide 25s infinite;
    z-index: -1;
    filter: blur(14px) brightness(0.45);
}

@keyframes bgSlide {
    0%   { background-image: url('../../TCData/log1.png'); opacity: 1; }
    20%  { opacity: 1; }
    25%  { opacity: 0; }
    25%  { background-image: url('../../TCData/log2.png'); opacity: 0; }
    30%  { opacity: 1; }
    45%  { opacity: 1; }
    50%  { opacity: 0; }
    50%  { background-image: url('../../TCData/log3.png'); opacity: 0; }
    55%  { opacity: 1; }
    70%  { opacity: 1; }
    75%  { opacity: 0; }
    75%  { background-image: url('../../TCData/log4.png'); opacity: 0; }
    80%  { opacity: 1; }
    95%  { opacity: 1; }
    99%  { opacity: 0; }
    100% { background-image: url('../../TCData/log5.png'); opacity: 0; }
}

.auth-wrapper{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box{
    width: 100%;
    max-width: 1080px;
    background: #ffffff;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}

.auth-left{
    position: relative;
}

.slide-show{
    width: 100%;
    height: 100%;
    position: relative;
}

.slide{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSequence 25s infinite;
}

.slide:nth-child(1){ animation-delay: 0s; }
.slide:nth-child(2){ animation-delay: 5s; }
.slide:nth-child(3){ animation-delay: 10s; }
.slide:nth-child(4){ animation-delay: 15s; }
.slide:nth-child(5){ animation-delay: 20s; }

@keyframes fadeSequence{
    0%{ opacity: 0; }
    4%{ opacity: 1; }
    20%{ opacity: 1; }
    24%{ opacity: 0; }
    100%{ opacity: 0; }
}

.auth-right{
    padding: 55px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.auth-header h1{
    font-size: 42px;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
}

.auth-header p{
    margin-top: 10px;
    margin-bottom: 30px;
    color: #444;
    font-size: 18px;
}

.field-label{
    text-align: left;
    margin-bottom: 6px;
    font-size: 16px;
    color: #333;
}

.input-box{
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 18px;
    outline: none;
    transition: 0.25s;
}

.input-box:focus{
    border-color: #0066ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.25);
}

.password-wrapper{
    width: 100%;
    position: relative;
}

.password-input{
    width: 100%;
    padding-right: 45px;
}

.confirm-password{
    width: 100%;
    padding-right: 45px;
}

.toggle-password{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.toggle-password:hover{
    color: #ff6b00;
}

.error-msg{
    color: red;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 12px;
    text-align: left;
}

.form-row{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.link-small{
    font-size: 15px;
    color: #ff6b00;
    text-decoration: none;
}

.divider-row{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.divider-line{
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider-text{
    font-size: 14px;
    color: #777;
}

.google-btn{
    width: 100%;
    padding: 13px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.google-icon{
    width: 22px;
    height: 22px;
}

.google-btn:hover{
    background: #f2f2f2;
}

.primary-btn{
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff6b00, #ff8500);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
}

.bottom-text{
    font-size: 15px;
    color: #666;
    margin-bottom: 22px;
}

.bottom-text a{
    color: #0066ff;
    text-decoration: none;
}

.social-row{
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 24px;
}

.social-row a{
    color: #555;
    transition: 0.2s;
}

.social-row a:hover{
    color: #ff6b00;
}

@media (max-width: 900px){
    .auth-box{
        grid-template-columns: 1fr;
    }

    .auth-left{
        height: 240px;
    }

    .auth-right{
        padding: 35px 26px 45px;
    }
}
