/* styles.css */
:root {
    --tu-red: #d40000;
    --tu-dark-red: #b00000;
    --error-red: #ff3b3b;
    --text-gray: #666;
    --border-gray: #ddd;
    --background-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: var(--background-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    max-width: 1000px;
    width: 90%;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    flex: 1;
}

.login-form {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--tu-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header h2 {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 400;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-field {
    margin-bottom: 1.25rem;
}

.input-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--tu-red);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-password img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover img {
    opacity: 1;
}

.error-message {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-footer {
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--tu-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:disabled {
    background-color: var(--border-gray);
    cursor: not-allowed;
}

.login-btn:not(:disabled):hover {
    background-color: var(--tu-dark-red);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.login-btn.loading .spinner {
    display: block;
}

.login-btn.loading .btn-text {
    display: none;
}

.links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.links a {
    color: var(--tu-red);
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--tu-dark-red);
}

.divider {
    margin: 0 0.5rem;
    color: var(--text-gray);
}

.image-side {
    flex: 1.2;
    position: relative;
    display: none;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(212, 0, 0, 0.2), rgba(212, 0, 0, 0.4));
}

.site-footer {
    background-color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--tu-red);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    padding: 1rem;
    background-color: var(--tu-red);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem;
    text-align: right;
    border-top: 1px solid var(--border-gray);
}

.modal-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--tu-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: var(--tu-dark-red);
}

/* Add these styles to your existing styles.css */

.checkbox-field {
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--background-gray);
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--tu-red);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--tu-red);
    border-color: var(--tu-red);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    padding-top: 2px;
}

/* Add to your styles.css */
.capslock-warning {
    display: none;
    position: absolute;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.capslock-warning.show {
    display: flex;
}

.capslock-warning img {
    width: 16px;
    height: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .image-side {
        display: block;
    }
}

@media (max-width: 767px) {
    .container {
        margin: 0;
        width: 100%;
        border-radius: 0;
    }

    .login-form {
        padding: 2rem 1.5rem;
    }
}