/* POPPINS FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ====== BASE ===== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ====== Body ===== */
body {
    background: url("/static/images/1.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ====== Form container ===== */
.form-container {
    display: flex;
    width: 1000px;
    height: 600px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* ====== First Column ===== */
.col-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 55%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px);
    border-radius: 0 30% 20% 0;
    transition: border-radius .3s;

}
.image-layer {
    position: relative;
}
.form-image-main {
    width: 400px;
    animation: scale-up 3s ease-in-out alternate infinite;
}
.form-image {
    position: absolute;
    left: 0;
    width: 400px;
}
/* ====== Form Image Animation ===== */
.coin {
    animation: scale-down 3s ease-in-out alternate infinite;
}
.spring {
    animation: scale-down 3s ease-in-out alternate infinite;
}
.dots {
    animation: scale-up 3s ease-in-out alternate infinite;
}
.rocket {
    animation: up-down 3s ease-in-out alternate infinite;
}
.cloud {
    animation: left-right 3s ease-in-out alternate infinite;
}
.stars {
    animation: scale-down 3s ease-in-out alternate infinite;
}

@keyframes left-right {
    to{
        transform: translateX(10px);
    }
}

@keyframes up-down {
    to{
        transform: translateY(10px);
    }
}

@keyframes scale-down {
    to{
        transform: scale(0.95);
    }
}

@keyframes scale-up {
    to{
        transform: scale(1.05);
    }
}

/* ====== Featured Words ===== */
.featured-words {
    text-align: center;
    color: #fff;
    width: 400px;
}
.featured-words span {
    font-weight: 600;
    color: #21264D;
}
/* ====== Second Column ===== */
.col-2 {
    position: relative;
    width: 45%;
    padding: 20px;
    overflow: hidden;
}
.btn-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    animation: btnBoxFloat 7s ease-in-out infinite;
}

@keyframes btnBoxFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}
.btn {
    font-weight: 500;
    padding: 8px 35px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: btnPulse 4s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
    50% { transform: scale(1.02); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn:active::after {
    width: 100px;
    height: 100px;
}
.btn1 {
    background: linear-gradient(135deg, rgba(33, 38, 77, 0.85), rgba(33, 38, 77, 0.65));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 30px rgba(33, 38, 77, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: btn1Glow 3s ease-in-out infinite alternate;
}

@keyframes btn1Glow {
    from { box-shadow: 0 12px 30px rgba(33, 38, 77, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
    to { box-shadow: 0 15px 35px rgba(33, 38, 77, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 20px rgba(255, 255, 255, 0.1); }
}
.btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: btnFluid 1.2s ease-in-out infinite;
}

@keyframes btnFluid {
    0%, 100% { transform: translateY(-3px) scale(1.08) rotate(0deg); }
    25% { transform: translateY(-5px) scale(1.1) rotate(0.5deg); }
    50% { transform: translateY(-4px) scale(1.12) rotate(0deg); }
    75% { transform: translateY(-5px) scale(1.1) rotate(-0.5deg); }
}

.btn1:hover {
    background: linear-gradient(135deg, rgba(33, 38, 77, 0.95), rgba(33, 38, 77, 0.75));
    box-shadow: 0 20px 40px rgba(33, 38, 77, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.15);
}
.login-form {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 4vw;
    transition: .3s;
}
.register-form {
    position: absolute;
    left: -50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 4vw;
    transition: .3s;
}
.register-form .form-title {
    margin-block: 40px 20px;
}
.form-title {
    margin: 40px 0;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}
.form-inputs {
    width: 100%;
}
.input-box {
    position: relative;
}
.input-field {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    margin: 10px 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    outline: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
::placeholder {
    color: #fff;
    font-size: 15px;
}
.input-field option {
    background: #21264D;
    color: #fff;
}
.input-box .icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translate(-50%);
    color: #fff;
}
.forgot-pass {
    display: flex;
    justify-content: right;
    gap: 5px;
}
.forgot-pass a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
.forgot-pass a:hover {
    text-decoration: underline;
}
.input-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 55px;
    padding: 0 15px;
    margin: 10px 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(33, 38, 77, 0.85), rgba(33, 38, 77, 0.65));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    animation: submitFloat 5s ease-in-out infinite;
}

@keyframes submitFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-2px) scale(1.01); }
}

.input-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.input-submit:hover::before {
    left: 100%;
}

.input-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 18px;
    animation: submitPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes submitPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}
.input-submit:hover {
    gap: 15px;
    background: linear-gradient(135deg, rgba(33, 38, 77, 0.95), rgba(33, 38, 77, 0.75));
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: submitFluid 1.8s ease-in-out infinite;
}

@keyframes submitFluid {
    0%, 100% { 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        transform: translateY(-4px) scale(1.03) rotate(0deg);
    }
    50% { 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
        transform: translateY(-6px) scale(1.05) rotate(0.5deg);
    }
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    width: 100%;
}
.alert-error {
    background: rgba(255, 0, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 0, 0, 0.3);
}
.alert-success {
    background: rgba(0, 255, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/*  ======= Login Form ========  */


/*  ======= Register Form ========  */


/* ======== Responsive ======== */
@media (max-width: 892px) {
    .form-container{
        width: 90%;
        max-width: 400px;
        height: auto;
        min-height: 500px;
    }
    .col-1 {
        display: none;
    }
    .col-2 {
        width: 100%;
        padding: 15px;
    }
    .form-title {
        margin: 20px 0;
        font-size: 24px;
    }
    .btn-box {
        margin-top: 10px;
    }
    .btn {
        padding: 6px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .form-container {
        width: 95%;
        max-width: 350px;
        border-radius: 20px;
        border-width: 2px;
    }
    .col-2 {
        padding: 10px;
    }
    .form-title {
        font-size: 22px;
        margin: 15px 0;
    }
    .input-field {
        height: 50px;
        font-size: 14px;
    }
    .input-submit {
        height: 50px;
        font-size: 14px;
    }
    .btn {
        padding: 5px 20px;
        font-size: 13px;
    }
    .btn-box {
        gap: 8px;
    }
}

@media (max-width: 320px) {
    .form-container {
        width: 98%;
        max-width: 300px;
    }
    .col-2 {
        padding: 8px;
    }
    .form-title {
        font-size: 20px;
    }
    .input-field, .input-submit {
        height: 45px;
        font-size: 13px;
    }
}