:root {
    --primary-color: #6a5ae0;
    --light-grey-bg: #f7f7f7;
    --white-bg: #ffffff;
    --input-bg: #f2f3f7;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
}

/* General Reset & Body Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--light-grey-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Main Container */
.login-container {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 600px;
    background-color: var(--white-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Left Panel - Illustration */
.login-left {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-left img {
    max-width: 80%;
    height: auto;
}

/* Right Panel - Form */
.login-right {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* Header */
.login-form h1 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.login-form h1 span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    display: block;
    margin-top: -5px;
}

/* OR Separator */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin: 30px 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: 0.5em;
}

.divider:not(:empty)::after {
    margin-left: 0.5em;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;

}


.input-group:focus-within .icon {
    opacity: 0;
}

.input-group .icon svg {
    width: 20px;
    height: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: none;
    border-radius: 10px;
    background-color: var(--input-bg);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.input-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Login Button */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #5848c7;
}

/* Responsive Design */
@media (max-width: 900px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 40px 30px;
    }
}

.toggle-password {
    cursor: pointer;
}

/* Style for the Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 150px;
    /* Adjust as needed */
    height: auto;
}
/* Validation Error Styles */
.text-danger {
    color: #e3342f !important; /* Laravel default red */
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}
