body {
    margin: 0;
    background: linear-gradient(135deg, #1f6f46, #4fa972);
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    perspective: 1500px;
    width: 100%;
    max-width: 960px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    animation: fadeInUp 1s ease;
}

.login-card.closed {
    transform: rotateY(180deg);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-left,
.login-right {
    flex: 1;
    backface-visibility: hidden;
}

.login-left {
    padding: 40px 35px;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.school-name {
    color: #1f6f46;
    font-weight: 700;
}

.tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.form-control {
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1f6f46;
    box-shadow: 0 0 0 3px rgba(31, 111, 70, 0.2);
}

.btn-login {
    background: #1f6f46;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #238a54;
    box-shadow: 0 6px 20px rgba(31, 111, 70, 0.35);
    transform: scale(1.03);
}

.login-right {
    background: #f3f8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.welcome-text {
    text-align: center;
    padding: 30px;
}

.welcome-text h2 {
    color: #1f6f46;
    font-weight: 700;
}

.welcome-text p {
    color: #555;
    font-size: 15px;
    margin-top: 10px;
}

.illustration {
    width: 80%;
    max-width: 300px;
    margin-top: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #f0f0f0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-right {
        display: none;
    }
}

/* =======================
           General Layout
        ======================= */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1f6f46, #4fa972);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
           Left (Form)
        ======================= */
.login-left {
    flex: 1;
    padding: 45px 50px;
    background: linear-gradient(180deg, #ffffffff, #939497ff);
    color: #000;
}

.login-left .logo {
    width: 90px;
    margin-bottom: 10px;
}

.login-left .school-name {
    font-weight: 700;
    color: #04126b;
}

.login-left .tagline {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
    outline: none;
}

.form-control:hover {
    border-color: #ffcc00;
}

/* Password + Eye */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #04126b;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #ffcc00;
}

/* Button */
.btn-login {
    width: 100%;
    background-color: #04126b;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #ffcc00;
    color: #000;
    transform: translateY(-2px);
}

/* Links */
.text-small {
    font-size: 16px;
    color: #04126b;
    transition: color 0.3s;
}

.text-small:hover {
    color: #ffcc00;
}

/* =======================
           Right (Illustration)
        ======================= */
.login-right {
    flex: 1;
    background: linear-gradient(180deg, #061eb6ff, #001a4b);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.login-right h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 10px;
}

.login-right p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

.illustration {
    width: 80%;
    max-width: 320px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =======================
           Copyright
        ======================= */
.copyright {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    color: #ddd;
    font-size: 13px;
}

/* =======================
           Responsive
        ======================= */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        margin: 20px;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 35px 30px;
    }
}

