﻿.main-container {
    height: 76vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login card container */
.auth-container {
    width: 100%;
    background: #ffffff;
    border-radius: 1rem;
    font-size: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

.auth-container.small {
    max-width: 350px;
}

.auth-container.middium {
    max-width: 520px;
}

.auth-2d-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header section */
.auth-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.auth-header-link {
    border-top: 1px solid #eef2f8;
}

.auth-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a2c3e;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #5f6c84;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.logo-icon {
    font-size: 3rem;
    color: #2c5a8c;
    margin-bottom: 0.5rem;
}

/* Form wrapper */
.auth-form {
    padding: 0 2rem 2rem 2rem;
}

.auth-separator {
    border-top: 1px solid #e5e9f0;
    padding-bottom: 1.2rem;
}

/* Input field groups */
.field-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
    align-items: center;
    gap: 0.5rem;
}

.field-group label i {
    width: 1.1rem;
    color: #5f7f9e;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #1f2a3e;
}

.input-field input:focus {
    border-color: #2c5a8c;
    box-shadow: 0 0 0 3px rgba(44, 90, 140, 0.1);
}

.input-field input.error-field {
    border-color: #dc6b6b;
    background: #fffbfb;
}

.input-field input.valid-field {
    border-color: #4c9a6e;
}

/* Password toggle button */
.toggle-pw-btn {
    position: absolute;
    right: 0.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: #8b9ab5;
    font-size: 1rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pw-btn:hover {
    color: #2c5a8c;
}

/* Error message */
.error-text {
    font-size: 0.7rem;
    margin-top: 0.35rem;
    color: #dc6b6b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.error-text i {
    font-size: 0.7rem;
}

/* Remember me & forgot password row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #5f6c84;
}

.checkbox-label input {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.forgot-link {
    color: #2c5a8c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1e466e;
    text-decoration: underline;
}

/* Submit button */
.submit-form {
    width: 100%;
    background: #2c5a8c;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.85rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-form:hover:not(:disabled) {
    background: #1e466e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 140, 0.2);
}

.submit-form:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9bafc4;
}

/* Status message */
.status-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    text-align: center;
    background: #eef3fa;
    color: #2c5a8c;
    border-left: 3px solid #2c5a8c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-msg.error {
    background: #feeaea;
    color: #b13e3e;
    border-left-color: #b13e3e;
}

.status-msg.success {
    background: #e6f4ea;
    color: #2b6e3c;
    border-left-color: #4c9a6e;
}

/* Register link */
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f8;
    font-size: 0.85rem;
    color: #5f6c84;
}

.register-link a {
    color: #2c5a8c;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Footer note */
.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: #7a88a1;
    margin-top: 1rem;
}

@media (max-width: 520px) {
    .auth-container {
        margin: 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .auth-header {
        padding: 1.5rem;
    }
}
