/* Основные стили */
:root {
    --primary-color: #0A5BFF;
    --primary-hover: #0949cc;
    --primary-active: #0738a3;
    --secondary-color: #14c6a4;
    --secondary-hover: #12b294;
    --secondary-active: #0f957b;
    --error-color: #dc3545;
    --text-color: #333;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --background-color: #EBF0F9;
    --card-bg: rgba(255, 255, 255, 0.95);
}

body {
    background: var(--background-color);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 530px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 40px;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

/* Логотип */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo-img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Заголовок */
.login-title {
    color: var(--text-color);
    font-weight: 600;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 24px;
}

/* Форма */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7a8699;
    flex: 1;
}

.stepper-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #c8d2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #f4f7fc;
}

.stepper-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.stepper-copy span {
    font-size: 13px;
}

.stepper-item.is-active {
    color: var(--text-color);
}

.stepper-item.is-active .stepper-index,
.stepper-item.is-complete .stepper-index {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.stepper-line {
    height: 1px;
    background: #d7deea;
    flex: 0 0 44px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 91, 255, 0.2);
    outline: none;
}

/* Кнопка */
.btn {
    border-radius: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    text-align: center;
}


.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.submit {
    background: var(--primary-color);
    color: white;
}

.submit:hover {
    background: var(--primary-hover);
}

.submit.active {
    background: var(--primary-active);
}

.secondary {
    background: var(--secondary-color);
    color: white;
}

.secondary:hover {
    background: var(--secondary-hover);
}

.secondary.active {
    background: var(--secondary-active);
}

.ghost {
    background: #eef2f7;
    color: #2f3b52;
}

.ghost:hover {
    background: #dde5f0;
}


/* Алерт */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #f8d7da;
    color: var(--error-color);
}

.alert-success {
    background: #b6ede3;
    color: #14c6a4;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
}

.step-info {
    border: 1px solid #d7e1f2;
    background: #f6f9ff;
    color: #40506b;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.step-info p {
    margin: 0;
}

.step-info p + p {
    margin-top: 6px;
}

.inline-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

/* Футер */
.footer-info {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .login-card {
        padding: 30px;
    }

    .logo-img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-card {
        padding: 25px;
    }

    .form-input {
        padding: 12px 14px;
    }

    .btn {
        padding: 14px;
    }

    .logo-img {
        max-width: 80px;
    }

    .stepper {
        flex-direction: column;
        align-items: stretch;
    }

    .stepper-line {
        width: 1px;
        height: 20px;
        margin-left: 17px;
    }
}

.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.logout-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logout-card h2 {
    margin: 20px 0;
    color: #333;
}

.logout-card p {
    margin-bottom: 30px;
    color: #666;
}

.text-decoration-none {
    text-decoration: none;
}

.w-default {
    width: initial;
}
