.login-wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
}

.login-wrapper h2 {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.login-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.login-field input:focus {
    border-color: #4a7aff;
    box-shadow: 0 0 0 3px rgba(74,122,255,0.15);
    outline: none;
}

.login-button {
    display: block !important;
    width: 100%;
    padding: 14px;
    background: #986cbd !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center !important;
}

.login-button:hover {
    background: #3a63d9;
}
.login-button:active {
    transform: scale(0.97);
    transition: transform 0.05s ease;
}


.login-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.login-button.loading::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shake animacija */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.login-button.shake {
    animation: shake 0.35s ease;
}

/* Error box */
.bsd-error-box {
    background: #ffe6e6;
    border-left: 4px solid #d9534f;
    padding: 12px 14px;
    border-radius: 6px;
    color: #a94442;
    font-size: 14px;
    margin-top: 15px;
    display: none; /* skrito, dokler ne pokažemo */
    animation: fadeIn 0.25s ease;
}

/* Fade-in animacija */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Shake animacija za error box */
.bsd-error-box.shake {
    animation: shake 0.35s ease;
}

/* Shake animacija (že imaš za gumb, zdaj jo uporabimo tudi tukaj) */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}



.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #4a7aff;
    text-decoration: none;
    font-weight: 500;
}