/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.password-lock-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Main container */
.password-lock-container {
    width: 100%;
    max-width: 350px;
    padding: 20px;
    text-align: center;
}

.password-lock-form-wrapper {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Logo styles */
.password-lock-logo {
    margin-bottom: 30px;
}

.password-lock-logo img {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Title styles */
.password-lock-title {
    margin-bottom: 30px;
}

.password-lock-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.password-lock-title p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Form styles */
.password-lock-form {
    width: 100%;
}

.password-lock-input-group {
    margin-bottom: 20px;
    position: relative;
}

.password-lock-form input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.password-lock-form input[type="password"]:focus {
    border-color: #666666;
    background: #333333;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.3);
}

.password-lock-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 4px;
}

/* Error message */
.password-lock-error {
    background: #222222;
    border: 1px solid #555555;
    color: #cccccc;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

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

/* Submit button */
.password-lock-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    background: #333333;
    border: 1px solid #555555;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.password-lock-submit:hover {
    background: #444444;
    border-color: #666666;
}

.password-lock-submit:active {
    background: #222222;
}

.password-lock-submit:disabled {
    background: #222222;
    border-color: #333333;
    color: #666666;
    cursor: not-allowed;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive design */
@media (max-width: 480px) {
    .password-lock-container {
        padding: 15px;
    }
    
    .password-lock-form-wrapper {
        padding: 30px 20px;
    }
    
    .password-lock-title h1 {
        font-size: 20px;
    }
    
    .password-lock-form input[type="password"] {
        font-size: 20px;
        padding: 14px 16px;
        letter-spacing: 6px;
    }
    
    .password-lock-logo img {
        max-width: 100px;
        max-height: 70px;
    }
}

@media (max-width: 320px) {
    .password-lock-form input[type="password"] {
        font-size: 18px;
        letter-spacing: 4px;
    }
    
    .password-lock-form input[type="password"]::placeholder {
        letter-spacing: 2px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .password-lock-form-wrapper {
        border: 2px solid #ffffff;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .password-lock-form input[type="password"] {
        border: 2px solid #ffffff;
        background: #000000;
    }
    
    .password-lock-submit {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
}

/* Focus indicators for keyboard navigation */
.password-lock-form input[type="password"]:focus,
.password-lock-submit:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .password-lock-body {
        background: white;
        color: black;
    }
    
    .password-lock-form-wrapper {
        border: 2px solid black;
        background: white;
    }
}