/* YL Auth Styles */
.yl-auth-login-page {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.yl-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.yl-auth-form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.yl-auth-form-wrapper h2 {
    margin: 0 0 30px 0;
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.yl-auth-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #1976d2;
}

.yl-auth-field {
    margin-bottom: 20px;
}

.yl-auth-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.yl-auth-field input[type="text"],
.yl-auth-field input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.yl-auth-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.yl-auth-field input[type="checkbox"] {
    margin-right: 8px;
}

.yl-auth-actions {
    text-align: center;
    margin-top: 30px;
}

.yl-auth-submit {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.yl-auth-submit:hover {
    background: #005a87;
}

.yl-auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.yl-auth-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.yl-auth-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.yl-auth-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 480px) {
    .yl-auth-container {
        padding: 10px;
    }
    
    .yl-auth-form-wrapper {
        padding: 30px 20px;
    }
    
    .yl-auth-form-wrapper h2 {
        font-size: 20px;
    }
}

/* Loading State */
.yl-auth-loading {
    position: relative;
}

.yl-auth-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: yl-auth-spin 1s linear infinite;
}

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

/* Admin Styles */
.yl-auth-admin .form-table th {
    width: 200px;
}

.yl-auth-admin code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Security Headers Info */
.yl-auth-security-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.yl-auth-security-info h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.yl-auth-security-info ul {
    margin: 0;
    padding-left: 20px;
}

.yl-auth-security-info li {
    margin-bottom: 5px;
}
