/* Passcode Page - Apple Design Language */
.passcode-card {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.passcode-header {
    margin-bottom: 40px;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 1;
    filter: none;
}

.page-title {
    color: #1d1d1f;
    font-weight: 700;
    margin: 16px 0 8px 0;
}

.passcode-description {
    font-size: 16px;
    color: #515154;
    line-height: 1.5;
    margin: 16px 0 0 0;
    font-weight: 500;
}

.passcode-form {
    margin: 0;
}

.passcode-input-container {
    position: relative;
    margin-bottom: 24px;
}

.passcode-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
    border: 2px solid #d1d1d6;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1d1d1f;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.passcode-input:focus {
    border-color: #007aff;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

.passcode-input::placeholder {
    color: #86868b;
    letter-spacing: normal;
    font-weight: 400;
}

.passcode-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #007aff, #5ac8fa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    margin-top: 16px;
}

.passcode-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.passcode-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.passcode-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

.btn-arrow {
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.passcode-submit:hover .btn-arrow {
    transform: translateX(2px);
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 10px;
    margin-top: 16px;
    animation: shake 0.5s ease-in-out;
}

.error-icon {
    font-size: 16px;
}

.error-text {
    font-size: 14px;
    color: #c41e3a;
    font-weight: 600;
}

.passcode-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-text {
    font-size: 13px;
    color: #515154;
    margin: 0;
    font-weight: 500;
}

/* Loading state */
.passcode-submit.loading {
    pointer-events: none;
}

.passcode-submit.loading span {
    opacity: 0;
}

.passcode-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state animation */
.passcode-card.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 480px) {
    .passcode-card {
        margin: 20px;
        padding: 32px 24px;
        max-width: none;
    }
    
    .lock-icon {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .passcode-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .passcode-submit {
        padding: 14px 20px;
        font-size: 16px;
    }
}
