/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header styles */
header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 20px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main content */
main {
    padding: 30px;
}

/* Screen visibility */
.screen {
    display: block;
}

.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

/* Fingerprint scanner container */
.scanner-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.fingerprint-scanner {
    width: 200px;
    height: 200px;
    border: 4px solid #3498db;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ecf0f1;
    position: relative;
    animation: pulse 2s infinite;
}

.fingerprint-scanner.small {
    width: 120px;
    height: 120px;
}

.scanner-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.fingerprint-scanner p {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

/* Scanning indicator */
.scanning-indicator {
    position: absolute;
    bottom: -30px;
    background: #f39c12;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    animation: blink 1s infinite;
}

/* Result messages */
.result-message {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

.success {
    background: #2ecc71;
    color: white;
    border: 2px solid #27ae60;
}

.error {
    background: #e74c3c;
    color: white;
    border: 2px solid #c0392b;
}

.warning {
    background: #f39c12;
    color: white;
    border: 2px solid #e67e22;
}

/* Buttons */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.primary-btn {
    background: #2ecc71;
    color: white;
}

.secondary-btn {
    background: #3498db;
    color: white;
}

.admin-btn {
    background: #9b59b6;
    color: white;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Footer */
footer {
    background: #ecf0f1;
    text-align: center;
    padding: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .fingerprint-scanner {
        width: 150px;
        height: 150px;
    }
    
    .fingerprint-scanner.small {
        width: 100px;
        height: 100px;
    }
    
    .btn {
        min-width: 150px;
        height: 50px;
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px 15px;
    }
    
    .fingerprint-scanner {
        width: 120px;
        height: 120px;
    }
    
    .scanner-icon {
        font-size: 3rem;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Touch-friendly enhancements */
.btn:active {
    background: #27ae60;
}

/* Success and error state animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}