:root {
    --primary-color: #fcaca3;
    --primary-hover: #fb9589;
    --primary-light: rgba(252, 172, 163, 0.1);
    --error-color: #dc3545;
    --success-color: #28a745;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light), white);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.mdv-pin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #feece8;
}

.mdv-pin-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
    text-align: center;
    transition: all 0.3s ease;
}

.mdv-pin-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(252, 172, 163, 0.2);
}

.mdv-pin-header {
    margin-bottom: 2rem;
}

.mdv-pin-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mdv-pin-logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.mdv-pin-header h1 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mdv-pin-header p {
    color: #666;
    margin: 0;
}

.mdv-pin-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mdv-pin-input {
    width: 45px;
    height: 55px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.mdv-pin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.mdv-pin-input.error {
    border-color: var(--error-color);
    animation: shake 0.5s;
}

.mdv-pin-input.success {
    border-color: var(--success-color);
}

.mdv-pin-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mdv-pin-toggle,
.mdv-pin-clear {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mdv-pin-toggle:hover,
.mdv-pin-clear:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mdv-pin-message {
    min-height: 24px;
    margin-bottom: 1rem;
    color: var(--error-color);
    font-size: 0.9rem;
}

.mdv-pin-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mdv-pin-submit:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 172, 163, 0.3);
}

.mdv-pin-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mdv-pin-submit .loading-text,
.mdv-pin-submit .success-text {
    display: none;
}

.mdv-pin-submit.loading .default-text,
.mdv-pin-submit.success .default-text {
    display: none;
}

.mdv-pin-submit.loading .loading-text {
    display: inline;
}

.mdv-pin-submit.success .success-text {
    display: inline;
}

.mdv-pin-footer {
    margin-top: 1.5rem;
}

.mdv-pin-forgot {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mdv-pin-forgot:hover {
    color: var(--primary-color);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .mdv-pin-form {
        padding: 2rem 1.5rem;
    }

    .mdv-pin-input-group {
        gap: 0.5rem;
    }

    .mdv-pin-input {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }

    .mdv-pin-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .mdv-pin-input {
        width: 35px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.mdv-pin-form {
    background: #222;
}

.mdv-pin-header h1 {
    color: #fff;
}

.mdv-pin-header p {
    color: #999;
}

.mdv-pin-input {
    background: #333;
    border-color: #444;
    color: #fff;
}

.mdv-pin-toggle,
.mdv-pin-clear {
    color: #999;
}

.mdv-pin-forgot {
    color: #999;
}