body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #ffffff, #2575fc);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures full height coverage */
    box-sizing: border-box;
}

.main-container {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    text-align: center;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
}

.header-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.sub-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.form-body {
    margin-top: 20px;
}

.label-td {
    text-align: left;
    margin-bottom: 5px;
    width: 100%;
}

.form-label {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-text:focus {
    border-color: #2575fc;
    outline: none;
    box-shadow: 0 0 5px rgba(37, 117, 252, 0.5);
}

.login-btn {
    background-color: #6a11cb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
    background-color: #2575fc;
    transform: scale(1.02);
}

.hover-link1 {
    color: #6a11cb;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.hover-link1:hover {
    color: #2575fc;
}

.text-danger {
    color: red;
    font-size: 12px;
    margin-top: -10px;
}

@media screen and (max-width: 600px) {
    .main-container {
        padding: 15px;
        max-width: 90%;
    }

    .header-text {
        font-size: 20px;
    }

    .sub-text {
        font-size: 12px;
    }

    .login-btn {
        font-size: 14px;
    }

    .input-text {
        font-size: 13px;
        padding: 8px;
    }
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
