/* All rules scoped to .card to avoid bleeding into other pages
   (auth pages: login + register). Keep .card unprefixed — it's the scope root. */

.card {
    background: #EAEAEA;
    border-radius: 16px;
    padding: 40px 48px;
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.4s ease-out;
}

.card .login-card .form-label,
.login-card .form-label {
    flex: 0 0 80px;
}

.card .register-card .form-label,
.register-card .form-label {
    flex: 0 0 130px;
}

.card .card-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.card .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.card .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: right;
    margin-right: 12px;
    flex-shrink: 0;
}

.card .input-wrapper {
    flex: 1;
    position: relative;
}

.card .form-input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.card .form-input::placeholder {
    color: #aaa;
}

.card .form-input:focus {
    outline: 1.5px solid #4d49fc;
    outline-offset: -1px;
}

.card .toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.card .toggle-password:hover {
    color: #555;
}

.card .eye-icon {
    width: 20px;
    height: 20px;
}

.card .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.card .error-msg {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    text-align: center;
}

.card .error-msg.visible {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}
