/* BOT Login Form Styles */
.bot-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.bot-login-form-wrapper {
    padding: 20px;
}

.bot-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.bot-login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.bot-login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.bot-login-form {
    width: 100%;
}

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

.bot-form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.bot-form-label .dashicons {
    margin-right: 8px;
    font-size: 16px;
    color: #6b7280;
}

.bot-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.bot-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Styles */
.bot-form-checkbox {
    margin: 16px 0;
}

.bot-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.bot-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Button Styles */
.bot-login-button {
    width: 100%;
    padding: 14px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.bot-login-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.bot-login-button:active {
    transform: translateY(0);
}

.bot-login-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.bot-login-button .button-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-login-button .button-spinner .dashicons {
    margin-right: 8px;
}

/* Animation for spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Links */
.bot-login-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.bot-forgot-password,
.bot-register-link {
    display: block;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.bot-forgot-password:hover,
.bot-register-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* WordPress Login Fallback */
.bot-wp-login-fallback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.bot-wp-login-fallback p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px 0;
}

.bot-wp-login-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.bot-wp-login-link:hover {
    background: #e5e7eb;
    text-decoration: none;
}

/* Messages */
#bot-login-messages {
    margin-bottom: 20px;
}

.bot-login-success,
.bot-login-error {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.bot-login-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.bot-login-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 480px) {
    .bot-login-container {
        margin: 20px;
        padding: 15px;
    }
    
    .bot-login-form-wrapper {
        padding: 15px;
    }
    
    .bot-login-title {
        font-size: 20px;
    }
    
    .bot-form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Integration with existing dashboard styles */
.bot-user-dashboard .bot-login-container {
    margin: 20px 0;
    max-width: 100%;
}

/* Loading state */
.bot-login-form.loading .bot-form-input,
.bot-login-form.loading .bot-login-button {
    pointer-events: none;
    opacity: 0.7;
}
