/* Authentication Pages Styling */
.auth-body {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.auth-header {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header h1 span {
    color: var(--primary-color);
}

.auth-header h2 {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
}

.auth-body {
    padding: 30px;
    background-color: var(--white);
}

.auth-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

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

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-primary i {
    margin-left: 8px;
}

.auth-footer {
    padding: 20px 30px;
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 10px 0;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Additional styling for form elements */
.form-group.full-width {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .auth-body {
        padding: 15px;
    }
    
    .auth-container {
        width: 100%;
    }

    .auth-header {
        padding: 20px 15px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

    .auth-header h2 {
        font-size: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .auth-footer {
        padding: 15px 20px;
    }
}

/* Additional styling for basic auth.js functionality */
.validation-error {
    color: var(--red);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

input.error {
    border-color: var(--red) !important;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
