/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.secure-download-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 20px;
    color: #222;
}

.secure-download-form {
    background-color: #f8f8f8;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    border: 1px solid #e0e0e0;
}

h2 {
    color: #000;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

.pin-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    margin-top: 15px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
}

.pin-dot.filled {
    background-color: #000;
    transform: scale(1.1);
    border-color: #000;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.key {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.key:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.key:active {
    transform: scale(0.95);
    background-color: #e8e8e8;
}

.key.delete {
    background-color: #f8f8f8;
    color: #666;
}

.key.delete:hover {
    background-color: #eee;
}

.key.empty {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.download-btn {
    display: none; /* Hidden by default */
    background: #000;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    margin: 25px auto 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 250px;
    width: 100%;
    text-align: center;
}

.download-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    transform: translateY(1px);
}

.download-icon {
    margin-right: 10px;
    vertical-align: middle;
}

.message {
    color: #d32f2f;
    margin-top: 15px;
    font-weight: 500;
    display: none;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    text-align: center;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.success-message {
    color: #2e7d32;
    margin-top: 15px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.5s;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .secure-download-form {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .key {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 300px) {
    .key {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .secure-download-form {
        padding: 15px 10px;
    }
} 