/* Authentication Pages Styles */

:root {
  --primary-color: #4154f1;
  --primary-hover: #5969f3;
  --bg-gradient-start: #4154f1;
  --bg-gradient-end: #2c3e50; /* Darker shade for contrast */
  --font-body: "Open Sans", sans-serif;
  --font-heading: "Nunito", sans-serif;
}

body {
    font-family: var(--font-body);
    background: #f6f9ff;
    color: #444444;
}

/* Login Page Only */
body:has(.login-wrapper) {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #012970 100%); /* Using brand dark blue */
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 8px; /* Matching dashboard card radius roughly */
    width: 100%;
    max-width: 450px;
    padding: 40px 40px;
    box-shadow: 0 0 20px rgba(1, 41, 112, 0.1); /* Matching dashboard shadow style */
}

/* Logo */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section img {
    max-height: 100px;
    width: auto;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #012970; /* Dashboard Headings Color */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0;
}

/* Form Inputs */
.input-field {
    margin-bottom: 1.5rem;
}

.input-box {
    position: relative;
}

.input-box .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab7cf;
    font-size: 18px;
    z-index: 1;
    transition: 0.3s;
}

.input-box input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Comfortable padding */
    border: 1px solid #ced4da; /* Bootstrap default */
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.input-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(65, 84, 241, 0.15);
}

.input-box input:focus + .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab7cf;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me-label {
    color: #444444;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 30px rgba(65, 84, 241, 0.4);
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 30px rgba(65, 84, 241, 0.6);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.footer-text {
    margin-top: 2rem;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .login-box {
        width: 100%;
    }
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .logo-section img {
        max-height: 80px;
    }
}
