/* Container styling */
.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 500px;
    margin: auto;
    text-align: center;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .login-container {
        width: 80%; /* Adjust width for tablet and small screens */
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 90%; /* Adjust width for smaller mobile screens */
        padding: 1rem;
    }
}

/* Heading styling */
h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 2rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem; /* Adjust heading size for smaller screens */
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
}

/* Input group styling */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* Password input container */
.password-container {
    position: relative;
}

/* Password input box */
input {
    width: 100%;
    padding: 0.75rem;
    padding-right: 40px;  /* Provide space for the icon */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
    input {
        padding: 0.6rem;
        font-size: 0.9rem; /* Adjust font size on smaller screens */
    }
}

@media (max-width: 480px) {
    input {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Icon inside input */
.toggle-password, .toggle-cpassword ,.toggle-opassword{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect on the toggle icon */
.toggle-password:hover, .toggle-cpassword:hover,.toggle-opassword:hover {
    transform: scale(1.2);
    color: #000;
}

/* Button styling */
.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #000000;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.6rem;
        font-size: 0.9rem; /* Adjust button size */
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

.btn:hover {
    background-color: #343434;
    transform: translateY(-3px);
}

.btn:active {
    background-color: #343434;
    transform: translateY(0);
}

/* Alert box styling */
.alert-error, .alert-success,.success ,.error{
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
}

.alert-error,.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-success,.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* Responsive adjustments for alert boxes */
@media (max-width: 768px) {
    .alert-error, .alert-success,.error,.success {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .alert-error, .alert-success {
        font-size: 0.85rem;
    }
}
