/* RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/general/loginbg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* change opacity here */
    z-index: 0;
}

/* Keep content above overlay */
body>* {
    position: relative;
    z-index: 1;
}

/* CARD CONTAINER */
.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 7px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    padding: 40px 46px;
}

/* LEFT SIDE (FORM) */
.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 40px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 14px;
    justify-items: center;
}

.auth-logo img {
    max-width: 160px;
    height: auto;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.auth-footer-text {
    margin-top: 18px;
    font-size: 13px;
    color: #4a5568;
    text-align: center;
}

.auth-terms-text {
    margin-top: 6px;
    font-size: 12px;
    color: #343536;
    text-align: center;
}

/* FORM STYLES */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.forgot-link {
    font-size: 12px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

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

.field-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #343536;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: #4299e1;
}

.password-toggle svg {
    transition: all 0.2s;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #343536;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.field-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    outline: none;
    transition: all 0.2s;
}

.field-input::placeholder {
    color: #cbd5e0;
}

.field-input:focus {
    background-color: #ffffff;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.auth-button {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3182ce, #2b6cb0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.25);
    transition: transform 0.1s, box-shadow 0.2s;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

/* RIGHT SIDE (VISUAL) */
.auth-right {
    display: none;
}

.wave-overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 120px;
    z-index: 5;
    fill: #ffffff;
}

.illustration-img {
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.dashed-circle {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(66, 153, 225, 0.3);
    border-radius: 50%;
    z-index: 0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 10px; */
    /* margin-bottom: 10px; */
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox {
    width: 15px;
    height: 16px;
    cursor: pointer;
    accent-color: #3182ce;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}

.remember-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

.auth-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.5;
}

.auth-logo {
    margin-bottom: 20px;
    text-align: center;
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin-top: 30px;
}

.auth-footer-text a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-terms-text {
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 10px;
}

.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Laravel error message styling */
.text-red-600 {
    color: #dc2626 !important;
}

.text-sm {
    font-size: 12px !important;
}

.space-y-1>*+* {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

ul.text-red-600 {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

ul.text-red-600 li {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Laravel success message styling */
.text-green-600 {
    color: #059669 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

div.text-green-600 {
    color: #059669;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 10px;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
}

.success-message {
    color: #38a169;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .auth-card {
        flex-direction: column;
        height: auto;
        max-width: 500px;
    }

    .auth-left {
        flex: none;
        width: 100%;
        padding: 40px 30px;
    }

    .auth-right {
        display: none;
    }
}