body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header i {
    font-size: 48px;
    margin-bottom: 10px;
}

.login-body {
    padding: 30px;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #667eea;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    padding-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #68428e 100%);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.admin-link {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.admin-notice {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* QR Scanner Styles */
.qr-scanner-container {
    text-align: center;
    padding: 20px;
}

.scan-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.scan-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.4);
}

.scan-button i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.scanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.scanner-modal.active {
    display: flex;
}

#qr-reader {
    width: 100%;
    max-width: 500px;
    border: 2px solid #48bb78;
    border-radius: 10px;
    overflow: hidden;
    background: black;
}

#qr-reader-results {
    display: none;
}

.scanner-controls {
    margin-top: 20px;
    text-align: center;
}

.scanner-status {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.scanner-status.success {
    color: #48bb78;
}

.scanner-status.error {
    color: #dc3545;
}

.manual-input-toggle {
    margin-top: 20px;
    text-align: center;
}

.manual-input-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.manual-input-section.active {
    display: block;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #6c757d;
}

.detected-data {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin: 20px;
    display: none;
    text-align: center;
}

.detected-data.show {
    display: block;
}

#qr-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.scan-region {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 3px solid #48bb78;
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
}

.scan-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border-top: 5px solid #48bb78;
    border-left: 5px solid #48bb78;
}

.scan-frame::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid #48bb78;
    border-right: 5px solid #48bb78;
}