/* Movie Rental System - Access Code Verification Styles */

.mrs-access-code-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mrs-access-code-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mrs-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.mrs-step-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.mrs-step-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Forms */
.mrs-email-form,
.mrs-otp-form,
.mrs-access-form {
    margin-top: 30px;
}

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

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

.mrs-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.mrs-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.mrs-otp-input {
    letter-spacing: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.mrs-form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

/* Buttons */
.mrs-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 10px;
}

.mrs-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.mrs-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.mrs-btn-primary:active {
    transform: translateY(0);
}

.mrs-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.mrs-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.mrs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.mrs-loading {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 10px;
}

.mrs-loading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.mrs-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f0f0f0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

/* Messages */
.mrs-messages {
    margin-bottom: 20px;
}

.mrs-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mrs-message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.mrs-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.mrs-message-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #e65100;
}

/* Success Content */
.mrs-success-content {
    text-align: center;
    padding: 30px 0;
}

.mrs-success-icon {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 20px;
    display: block;
}

.mrs-success-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.mrs-success-content p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .mrs-access-code-container {
        margin: 20px 10px;
        padding: 20px;
    }

    .mrs-step-header h2 {
        font-size: 20px;
    }

    .mrs-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}