* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #f4f6f9;
}

/* MAIN WRAPPER */
.login-wrapper {
    display: flex;
    height: 100vh;
}

/* LEFT PANEL */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
}

.login-left h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 2px;
}

.login-left p {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* RIGHT PANEL */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGIN BOX */
.login-box {
    padding: 40px;
    width: 500px;
}

.login-box h2 {
    margin-bottom: 25px;
    font-weight: 600;
}

/* INPUT WRAPPER */
/* INPUT WRAPPER */
.input-wrapper {
    margin-bottom: 20px;
}

/* INPUT FIELDS */
.login-box input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: #2c5364;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #2c5364;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-box button:hover {
    background: #203a43;
}

/* ERROR MESSAGE BELOW INPUT */
.error-message {
    color: red;
    font-size: 0.61rem;
    margin-top: 5px; /* space below input */
    display: block; /* makes it appear on a new line */
}

/* RED BORDER ANIMATION */
.input-error {
    border: 1px solid red !important;
    animation: shake 0.3s ease-in-out 0s 1;
}

.login-left .powered-by {
    display: block;
    font-size: 8px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.65);
}


@keyframes shake {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0px); }
}
/* RESPONSIVE */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        height: 40vh;
        padding-left: 40px;
    }

    .login-box {
        width: 80%;
        padding: 30px;
    }

    .error-message {
        font-size: 0.8rem;
    }
}
