* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.login-container {
    background: white;
    padding: 40px 30px;
    max-width: 420px;
    min-width: 420px;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.view {
    display: none;
    flex-direction: column;
    flex: 1;
}

.view.active {
    display: flex;
}

.view-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 600;
}

h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
}

.bankid-section {
    margin-bottom: 30px;
}

.bankid-header {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.bankid-btn {
    max-width: 150px;
    padding: 0;
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}

.bankid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #1a4a5c;
}

.bankid-btn:active {
    transform: translateY(0);
}

.bankid-btn img {
    width: 100%;
    height: auto;
    display: block;
}

.alt-login {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.alt-login a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.alt-login a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: #d06516;
    border: none;
    color: white;
    border-radius: 1px;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: normal;
    
}

.primary-btn:hover {
    background: #b0540d;
}

.back-btn {
    width: 100%;
    padding: 14px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 1px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.back-btn:hover {
    background: #e0e0e0;
}
.qr-container {
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    padding-bottom: 2em;

}

#qr-code {
    padding: 5px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
}

.dialog-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}



.form-footer {
    margin-top: auto;
}

#spinner {
    margin: 0 auto;
    display: none;
    font-size: 96px;
    --track-width: 10px;
}