/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Prevent scrolling on the main body */
    background-color: #f0f2f5; /* Fallback */
    /* Creating a subtle gradient background */
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login_spinner {
    display: none;
    position: absolute;
    right: 6rem;
    bottom: 7px;
}
/* Main Container - Handles the centering */
.login_contain {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Added padding for small screens */
}

/* The Card/Holder */
.input_holder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px; /* Increased slightly for better desktop view, but responsive */
    /* Glassmorphism effect (replaces the simple solid color) */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Add a subtle hover effect on the card */
    .input_holder:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

.login_logo {
    width: 13rem;
    border-radius: 50%;
    margin-bottom: 1em;
}

/* Form Elements */
.form-group {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

/* Input Styling */
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    outline: none;
    color: #333;
}

    .form-control:focus {
        border-color: #4a90e2;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }

/* Button Styling */
.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #4a90e2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .btn-primary:hover {
        background-color: #357abd;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .btn-primary:disabled {
        background-color: #a0c4e8;
        cursor: not-allowed;
    }

/* Labels and Helper Text */
.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    align-self: flex-start;
}

.login-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 30px;
    align-self: flex-start;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.forgot-password {
    align-self: flex-end;
    font-size: 13px;
    color: #4a90e2;
    text-decoration: none;
    margin-top: -15px;
    margin-bottom: 20px;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* Toast Notification Styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease forwards;
    max-width: 300px;
    border-left: 4px solid #4a90e2;
}

    .toast.error {
        border-left-color: #e53e3e;
    }

    .toast.success {
        border-left-color: #38a169;
    }

    .toast.info {
        border-left-color: #3182ce;
    }

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    min-width: 20px;
}

    .toast.error .toast-icon {
        color: #e53e3e;
    }

    .toast.success .toast-icon {
        color: #38a169;
    }

    .toast.info .toast-icon {
        color: #3182ce;
    }

.toast-message {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Mobile Specific Adjustments */
@media (max-width: 480px) {
    .login_contain {
        padding: 15px;
    }

    .input_holder {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 22px;
    }
}
