/**
 * Vendor Login System CSS
 */

/* Logged In Vendor Styles */
.vendor-logged-in {
    text-align: center;
}

.vendor-welcome-message {
    margin-bottom: 20px;
    font-size: 16px;
}

.vendor-action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.vendor-dashboard-button,
.vendor-logout-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.vendor-dashboard-button {
    background-color: #7e57c2;
    color: white;
}

.vendor-dashboard-button:hover {
    background-color: #6a4caf;
    color: white;
}

.vendor-logout-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.vendor-logout-button:hover {
    background-color: #e0e0e0;
    color: #333;
}

.vendor-login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vendor-login-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.vendor-login-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.vendor-login-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    display: block;
}

.vendor-login-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}

.vendor-login-form .form-group {
    margin-bottom: 15px;
}

.vendor-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.vendor-login-form input[type="text"],
.vendor-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.vendor-login-form input[type="text"]:focus,
.vendor-login-form input[type="password"]:focus {
    border-color: #7e57c2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

.vendor-login-form .remember-me {
    display: flex;
    align-items: center;
}

.vendor-login-form .remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.vendor-login-form .remember-me label {
    margin-bottom: 0;
    font-weight: normal;
}

.vendor-login-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7e57c2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vendor-login-button:hover {
    background-color: #6a4caf;
}

.vendor-login-button:disabled {
    background-color: #b39ddb;
    cursor: not-allowed;
}

.vendor-login-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #7e57c2;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .vendor-login-container {
        padding: 20px;
    }
}