﻿body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #eeaeae, #b850da);
    display: flex;
    align-items: center;
    color: #333;
    flex-direction:column;
}

/* Login Card Styles */
.login-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    width: 350px; /* Adjusted width for a compact design */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

    .login-container h2 {
        margin-bottom: 20px;
        font-size: 24px;
        color: #333;
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Updated Input Field Styles */
.form-control {
    width: 90%; /* Aligned with the form width */
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #f7f9fc;
    color: #555;
    transition: all 0.3s ease;
    margin: 0 auto;
}

    .form-control:focus {
        outline: none;
        border: 2px solid #6a11cb;
        background: #fff;
        box-shadow: 0 4px 6px rgba(106, 17, 203, 0.2);
    }

    .form-control::placeholder {
        color: #aaa;
        font-style: italic;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

.btn {
    display: block;
    width: 90%; /* Aligned with the inputs */
    margin: 0 auto;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn:hover {
        background: linear-gradient(to right, #ff4b2b, #ff416c);
        box-shadow: 0 4px 8px rgba(255, 65, 108, 0.3);
    }

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}

    .remember-me input {
        margin-right: 8px;
    }

/* Footer Links */
.login-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

    .login-footer a {
        color: #6a11cb;
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

.text-danger {
    color: red;
    font-size: 1em;
    margin-top: 5px;
    display: block;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
}

    .password-toggle:hover {
        color: #6a11cb;
    }
