/**
 * Agent System Pro
 * Filename: login.css
 * Version: 1.0
 * Folder: /plugins/agentsystempro/assets/css/
 * Description: Styles for login and register pages
 * Developer: Jim Tjernstroem
 * Copyright: Vianke Ltd Jim Tjernstroem 2025
 */

/* Login/Register Page Wrapper */
.asp-login-page,
.asp-register-page,
.asp-pending-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asp-login-wrapper,
.asp-pending-wrapper {
    width: 100%;
    padding: 20px;
}

.asp-login-container,
.asp-pending-container {
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.asp-register-container {
    max-width: 500px;
}

/* Logo */
.asp-login-logo,
.asp-pending-logo {
    text-align: center;
    margin-bottom: 30px;
}

.asp-login-logo img,
.asp-pending-logo img {
    max-width: 180px;
    height: auto;
}

/* Title */
.asp-login-title,
.asp-pending-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 30px;
}

/* Form */
.asp-login-form,
.asp-register-form {
    margin-bottom: 20px;
}

.asp-login-form .asp-form-group,
.asp-register-form .asp-form-group {
    margin-bottom: 20px;
}

.asp-login-form label,
.asp-register-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a4a4a;
    font-size: 14px;
}

.asp-login-form .asp-form-control,
.asp-register-form .asp-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.asp-login-form .asp-form-control:focus,
.asp-register-form .asp-form-control:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Remember Me Checkbox */
.asp-form-checkbox {
    margin-bottom: 25px;
}

.asp-form-checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.asp-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Submit Button */
.asp-login-form .asp-btn,
.asp-register-form .asp-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #0a2342 0%, #1a5276 100%);
    border: none;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.asp-login-form .asp-btn:hover,
.asp-register-form .asp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Links */
.asp-login-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.asp-login-links a {
    color: #1a5276;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.asp-login-links a:hover {
    color: #143852;
    text-decoration: underline;
}

.asp-separator {
    margin: 0 10px;
    color: #999999;
}

/* Alerts on Login Page */
.asp-login-container .asp-alert,
.asp-register-container .asp-alert,
.asp-pending-container .asp-alert {
    margin-bottom: 25px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}

/* Pending Page Specific */
.asp-pending-icon {
    text-align: center;
    margin-bottom: 20px;
}

.asp-pending-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ffc107;
}

.asp-pending-content {
    margin-bottom: 30px;
}

.asp-pending-message {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
    text-align: center;
}

.asp-pending-info {
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.asp-pending-status {
    background-color: #fff3cd;
    border: 1px solid #ffecc7;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.asp-status-label {
    font-weight: 600;
    color: #856404;
}

.asp-status-value {
    color: #856404;
    margin-left: 10px;
}

.asp-pending-details {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
}

.asp-pending-details p {
    margin-bottom: 10px;
    font-weight: 600;
}

.asp-pending-details ul {
    margin: 0;
    padding-left: 20px;
}

.asp-pending-details li {
    margin-bottom: 8px;
    color: #6c757d;
}

.asp-pending-actions {
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .asp-login-container,
    .asp-register-container,
    .asp-pending-container {
        padding: 30px 20px;
    }
    
    .asp-login-title,
    .asp-pending-title {
        font-size: 20px;
    }
    
    .asp-login-logo img,
    .asp-pending-logo img {
        max-width: 150px;
    }
}

/* Pending Page Improvements */
.asp-pending-welcome {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.asp-pending-message {
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

.asp-pending-status-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecc7 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.asp-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.asp-status-label {
    font-weight: 600;
    color: #856404;
    font-size: 14px;
}

.asp-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asp-status-pending {
    background: #ffc107;
    color: #fff;
}

.asp-pending-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.asp-pending-info-box h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.asp-pending-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asp-pending-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

.asp-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 12px;
    flex-shrink: 0;
}

.asp-pending-actions {
    text-align: center;
    padding-top: 10px;
}

/* Reset Password Page */
.asp-reset-page .asp-reset-description {
    color: #6c757d;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

/* Better centering for all login-style pages */
.asp-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.asp-login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.asp-pending-container {
    max-width: 500px;
}

/* Improved button styles */
.asp-btn-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.asp-btn-secondary:hover {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}
