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

body {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}


.main-container {
    display: flex;
    height: 100vh;
    width: 100%;
    animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(1.06);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= LEFT SECTION ================= */
.left-section {
    flex: 1;
    background-color: #ffffff;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

#para {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-grp {
    margin-bottom: 20px;
}

.input-grp label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.input-grp input {
    width: 100%;
    padding: 15px;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.input-grp input:focus {
    border-color: #4f46e5;
    background-color: #fff;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

.check-remember {
    display: flex;
    justify-content: right;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

#forgot-pass {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #4e46e5e8;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #e1e1e1;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: #fff;
    padding: 0 10px;
    color: #aaa;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e1e1e1;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-social:hover {
    background-color: #f8f9fa;
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.signup-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

/* ================= Responsive Adjustments ================= */

@media (max-height: 1372px) {

    .text-img {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .text-img p {
        margin-bottom: 400px;
    }
}

@media (max-width: 992px) {

    body {
        overflow-y: auto !important;
        height: auto !important;
    }

    .main-container {
        flex-direction: column;
        height: auto;
    }

    .left-section {
        flex: none;
        width: 100%;
        padding: 40px 20px;
    }

    .text-img {
        padding: 20px 0 0 0;
        margin-top: 20px;
        height: auto;
        align-items: center;
    }

    .text-img h2 {
        margin-top: 100px;
    }

    .text-img p {
        margin-bottom: 100px;
    }

}

@media (max-width: 630px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    body {
        overflow-y: auto;
    }

    .left-section {
        padding: 30px;
    }
}




/* Swal Customization */

.glass-alert {
    backdrop-filter: blur(12px);
    border-radius: 20px;
}



/* ================== FORGET PASSWORD ==================== */

.forgot-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f6f7;
}

.forgot-box {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(1.06);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.forgot-box h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.forgot-box .sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 25px;
}

.back-login {
    display: block;
    margin-top: 18px;
    font-size: 14px;
    color: #4f46e5;
    text-decoration: none;
}


/* ------- SAME FAMILY STYLING LIKE FORGET PAGE -------- */

.update-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #f4f7f8, #eef2f3);
}

.update-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    padding: 40px 42px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: slideDown 0.9s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-80px) scale(1.06);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.update-box h2 {
    font-size: 25px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.update-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

.input-grp {
    margin-bottom: 22px;
    text-align: left;
}

.input-grp label {
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
    display: block;
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding: 15px 18px;
    background: #f7f9fa;
    border: 1px solid #e2e5e7;
    border-radius: 10px;
    font-size: 15px;
    transition: all .3s ease;
}

.password-input input:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 59, 70, 0.10);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 17px;
    cursor: pointer;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: #4f46e5 !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: #4e46e5d3;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 59, 70, 0.30);
}

/* LINK */
.back-login {
    margin-top: 18px;
    font-size: 14px;
    color: #4f46e5;
    text-decoration: none;
    transition: 0.2s;
}

.back-login:hover {
    color: #022e36;
    text-decoration: underline;
}

/* Swal Customization */

.glass-alert {
    backdrop-filter: blur(12px);
    border-radius: 20px;
}