/* Base layout */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Theme: Light */
.theme-light body {
    background-color: rgba(241, 245, 249);
    color: #111827;
}

.theme-light .login-box {
    background-color: #f9fafb;
    border-color: #ddd;
}

/* Theme: Dark */
.theme-dark body {
    background-color: rgba(15, 23, 42);
    color: #f5f5f5;
}

.theme-dark .login-box {
    background-color: rgba(30, 41, 59);
    border-color: #333;
}

/* Success toast (bottom right) */
.success-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    z-index: 999;
}

.success-toast .reload-link {
    font-weight: 600;
    text-decoration: underline;
    color: #047857;
    cursor: pointer;
}

/* Wrapper */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    min-height: 100vh;
    width: 100%;
}

/* Login box */
.login-box {
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
}

.login-logo svg {
    max-height: 90px;
    height: auto;
    width: auto;
}

.login-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
}

/* Titles */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}


.login-logo svg{
    height: 4.5rem;
}
.border-red-600 {
    border: 1px solid #e3342f !important;
}
.error-message {
    color: #e3342f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.general-error {
    color: #e3342f;
    font-weight: bold;
    background: #fee;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}


.divider {
    margin: 1rem 0;
    border-top: 1px solid #ddd;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 93%;
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input {
    display: block;
    width: 93%;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #111827;
}

.form-group input:focus {
    border-color: rgb(145, 91, 85);
    box-shadow: 0 0 0 1px rgb(145, 91, 85);
    outline: none;
}

/* Error state */
.error-input {
    border-color: red !important;
    color: #b91c1c !important;
}

.error-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #b91c1c;
}

/* Button */
.login-button {
    display: block;
    width: 93%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: rgb(145, 91, 85);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: rgb(135, 81, 75);
}
/* Form options row → remember me + forgot password link */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 93%; /* match .form-group width */
    font-size: 0.875rem;
}

/* Remember me checkbox label */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}

/* Forgot password link */
.forgot-password {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #6366f1; /* Optional hover color */
}
