/**
 * Frontend styles for Vendor Access plugin
 */

.vendor-access-form-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 0 20px;
}

.vendor-access-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vendor-access-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.vendor-access-description {
    margin: 0 0 25px 0;
    text-align: center;
    color: #666;
    line-height: 1.5;
}

.vendor-access-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 12px;
    margin: 0 0 20px 0;
}

.vendor-access-error p {
    margin: 0;
    color: #c62828;
    font-weight: 500;
}

.vendor-access-field {
    margin-bottom: 20px;
}

.vendor-access-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.vendor-access-field input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.vendor-access-field input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.vendor-access-submit {
    text-align: center;
    margin-top: 25px;
}

.vendor-access-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 150px;
}

.vendor-access-button:hover {
    background: #005a87;
}

.vendor-access-button:active {
    background: #004c73;
}

.vendor-access-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vendor-access-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.vendor-access-loading p {
    margin: 0;
}

/* Success message */
.vendor-access-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 12px;
    margin: 0 0 20px 0;
    text-align: center;
}

.vendor-access-success p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 480px) {
    .vendor-access-form-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .vendor-access-form {
        padding: 20px;
    }
    
    .vendor-access-title {
        font-size: 20px;
    }
    
    .vendor-access-field input[type="password"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vendor-access-form {
        background: #2c2c2c;
        border-color: #444;
        color: #fff;
    }
    
    .vendor-access-title {
        color: #fff;
    }
    
    .vendor-access-description {
        color: #ccc;
    }
    
    .vendor-access-field label {
        color: #fff;
    }
    
    .vendor-access-field input[type="password"] {
        background: #444;
        border-color: #666;
        color: #fff;
    }
    
    .vendor-access-field input[type="password"]:focus {
        border-color: #0073aa;
    }
}
