/**
 * CSS styles for login_wa plugin
 *
 * @package    local_login_wa
 * @copyright  2024
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

.login-wa-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.login-wa-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    border: 1px solid #e3e3e3;
}

.login-wa-form h4 {
    text-align: center;
    margin-bottom: 13px;
    color: #333;
    font-weight: 600;
}

.login-wa-form .description {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
}

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

.wa-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wa-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wa-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
}

.wa-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.btn {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    color: white;
}

.btn-primary:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
}

.btn-success {
    background-color: #0790b2;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: white;
    text-decoration: none;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 7px 25px;
    font-size: 16px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.back-link1 {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.back-link a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.back-link1 a {
    color: #088fb1;
    text-decoration: none;
    font-size: 15px;
}

.back-link a:hover {
    text-decoration: underline;
}

.token-verify-box {
    text-align: center;
}

.token-verify-box form {
    margin: 20px 0;
}

.token-info {
    margin-top: 15px;
}

.text-muted {
    color: #6c757d;
}

/* WhatsApp branding colors */
.wa-brand {
}

/* Responsive design */
@media (max-width: 576px) {
    .login-wa-container {
        padding: 10px;
    }
    
    .login-wa-form {
        padding: 20px;
        margin: 10px;
    }
    
    .wa-form .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Loading spinner */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Icons */
.fa {
    margin-right: 8px;
}