
.dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex-basis: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-container {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    padding: 25px;
    text-align: center;
    border-top: 4px solid var(--fastbit-hallon);
    color: white;
    background:  var(--fastbit-midnatt);
    transition: width 1s, height 1s, background-color 1s;
}

.login-header {
    margin-bottom: 32px;
}

.login-logo {
    height: 30px;
    margin-bottom: 20px;
}

.login-page-footer {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    max-width: 420px;
    padding: 0 40px;
    box-sizing: border-box;
}

.login-page-footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.login-page-footer a:hover {
    text-decoration: underline;
}

.login-header h1 {
    font-size: 24px;
    color: white;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    font-size: 14px;
}

/* Login Options */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 2s ease;
}

.btn-account {
    background-color: #eee;
    color: var(--fastbit-midnatt);
    width: 80%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 30px 20px;
    margin: 10px 10px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-bankid {
    background-color: #eee;
    color: var(--fastbit-midnatt);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 60px 20px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-bankid:hover {
    background-color: var(--fastbit-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--fastbit-midnatt);
    transform: scale(1.05);
}

.btn-bankid img {
    height: 80px;
    margin-bottom: 10px;
}

.btn-email {
    background-color: var(--fastbit-midnatt);
    color: var(--fastbit-white);
    border: 2px solid var(--fastbit-midnatt);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-email:hover {
    background-color: rgba(1, 115, 165, 0.05);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-email img {
    height: 64px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: white;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider:not(:empty)::before {
    margin-right: 16px;
}

.divider:not(:empty)::after {
    margin-left: 16px;
}

/* Login Steps */
.login-step {
    text-align: left;
    transition: all 2s ease;
}

.login-step h2 {
    font-size: 20px;
    margin: 0 0 24px 0;
    color: white;
    font-weight: 600;
    text-align: center;
}

/* BankID View */
.bankid-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.bankid-option {
    position: relative;
    padding: 8px 0;
    cursor: pointer;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.bankid-option.active {
    color: white;
    font-weight: 500;
}

.bankid-option.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fastbit-yellow);
}

.bankid-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.qr-container {
    background: var(--fastbit-white);
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    font-size: 0.9rem;
}

#qrcode {
    display: inline-block;
    padding: 0px;
    margin-bottom: 10px;
    width: 250px;
    height: 250px;
}

.qr-container p {
    margin: 0;
    color: black;
    font-size: 0.9rem;
}

.bankid-app-container {
    text-align: center;
    margin-top: 10px;
}

.bankid-app-container p {
    margin-bottom: 10px;
    color: var(--fastbit-white);
    font-size: 0.9rem;
}

.bankid-app-icon {
    width: 64px;
    height: 64px;
    background: var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.bankid-app-icon:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bankid-app-icon img {
    width: 40px;
    height: 40px;
}

/* Email Form */
.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.login-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.login-form input[type="email"]:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Verification Code */
.verification-form {
    margin-top: 24px;
}

.verification-code {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.verification-code input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--black);
    font-weight: 500;
    padding: 10px 10px !important;
}

.verification-code input:focus {
    border-color: var(--fastbit-blue);
    box-shadow: 0 0 0 2px rgba(1, 115, 165, 0.2);
    outline: none;
    transform: translateY(-1px);
}

.resend-code {
    font-size: 14px;
    margin-bottom: 24px;
}

.resend-code a {
    text-decoration: none;
    font-weight: 500;
}

.resend-code a:hover {
    text-decoration: underline;
}

/* Login Footer */
.login-footer {
    margin-top: 24px;
    text-align: center;
}

.btn-link {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--fastbit-blue);
    color: var(--white);
    width: 100%;
    padding: 12px 24px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: var(--fastbit-midnatt);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.main-header {
    display: none;
}
