* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
    background: #003b80;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: polygon(30% 40%, 70% 40%, 50% 70%), polygon(10% 20%, 40% 20%, 25% 50%),
        polygon(60% 10%, 90% 10%, 75% 40%), polygon(20% 60%, 50% 60%, 35% 90%), polygon(70% 50%, 100% 50%, 85% 80%),
        polygon(5% 80%, 35% 80%, 20% 110%), polygon(80% 20%, 110% 20%, 95% 50%), polygon(40% 70%, 70% 70%, 55% 100%);
    background-size: 200px 200px, 150px 150px, 180px 180px, 160px 160px, 140px 140px, 170px 170px, 190px 190px, 130px 130px;
    background-position: 0 0, 100px 50px, 200px 100px, 50px 150px, 150px 200px, 300px 250px, 250px 300px, 350px 350px;
    background-repeat: repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(147, 197, 253, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 48px;
    height: 48px;
    margin-right: 8px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    color: white;
}

.logo-title {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 14px;
    line-height: 1.2;
}

.contact-center {
    color: white;
    text-align: right;
}

.phone-number {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    color: white;
    text-decoration: none;
}

.contact-text {
    font-size: 12px;
    line-height: 1.2;
}

.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: calc(100vh - 80px - 120px);
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

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

.form-input {
    width: 100%;
    height: 48px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #0066ff;
}

.btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0066ff;
    color: white;
}

.btn-primary:hover {
    background-color: #0055d4;
}

.btn-outline {
    background-color: white;
    color: #0066ff;
    border: 1px solid #0066ff;
}

.btn-outline:hover {
    background-color: #f0f7ff;
}

.mobile-apps-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.mobile-apps-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.mobile-apps-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-apps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-apps-row.single {
    justify-content: center;
}

.mobile-app-icon {
    display: inline-block;
    text-decoration: none;
    background-color: #002a66;
    border: 1px solid #002a66;
    border-radius: 8px;
    padding: 8px;
    width: 115px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    backdrop-filter: blur(10px);
}

.mobile-app-icon:hover {
    transform: translateY(-2px);
}

.mobile-app-icon img {
    max-height: 34px;
    max-width: 100%;
    object-fit: contain;
}

/* Госуслуги стили */
/* Увеличиваем отступы в карточке Госуслуг */
.gosuslugi-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    margin: 60px auto 24px auto;
    position: relative;
    z-index: 1;
}

.input-group {
    position: relative;
    margin-bottom: 28px;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0 4px;
    z-index: 2;
}

.floating-label.active,
.gosuslugi-input:focus+.floating-label,
.gosuslugi-input:not(:placeholder-shown)+.floating-label {
    top: -8px;
    font-size: 12px;
    color: #0065b1;
    font-weight: 500;
    background-color: white;
}

.gosuslugi-input {
    width: 100%;
    height: 56px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 16px 8px 16px;
    margin-bottom: 0;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.gosuslugi-input:focus {
    outline: none;
    background-color: white;
    border-color: #0065b1;
    box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.1);
}

.gosuslugi-input:not(:placeholder-shown) {
    background-color: white;
    border-color: #e0e0e0;
}

.gosuslugi-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #003B80;
    z-index: 1000;
    overflow-y: auto;
}

.gosuslugi-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
}

/* Увеличиваем отступы в информационной карточке */
.gosuslugi-info-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    margin: 24px auto 16px auto;
    position: relative;
    z-index: 1;
}

.info-card-content {
    padding: 40px 32px;
    display: flex;
    align-items: center;
}

/* Увеличиваем отступы между элементами */
.gosuslugi-logo {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gosuslugi-link {
    color: #0d4cd3;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.gosuslugi-link-left {
    text-align: left;
    margin-bottom: 32px;
    margin-top: -12px;
    display: block;
    font-size: 14px;
    font-weight: 400;
}

.gosuslugi-link-center {
    text-align: center;
    margin-bottom: 0;
    display: block;
}

/* Увеличиваем отступы для кнопки регистрации */
.gosuslugi-register-container {
    width: 100%;
    max-width: 400px;
    margin: 24px auto;
    position: relative;
    z-index: 1;
}

.gosuslugi-register-button {
    display: block;
    width: 100%;
    text-align: center;
    color: #0d4cd3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 20px 0;
    background: none;
    border: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

.gosuslugi-register-button:hover {
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.gosuslugi-button {
    width: 100%;
    height: 56px;
    background-color: #0d4cd3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 32px;
    margin-top: 16px;
    transition: background-color 0.2s;
}

.gosuslugi-button:hover {
    background-color: #0a3fb8;
}

.info-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.info-card-link:hover {
    transform: translateY(-2px);
}

.info-icon-container {
    margin-right: 16px;
    flex-shrink: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
}

.info-text {
    color: #0d4cd3;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.gosuslugi-trouble-link {
    color: #0d4cd3;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    transition: all 0.2s;
}

.gosuslugi-trouble-link:hover {
    text-decoration: underline;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-button:hover {
    background-color: rgba(13, 76, 211, 0.1);
    border-radius: 50%;
}

/* Всплывающее окно "Не удаётся войти?" */
.trouble-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
}

.trouble-modal {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trouble-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
}

.trouble-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.trouble-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #0d4cd3;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.trouble-modal-close:hover {
    background-color: #f0f7ff;
}

.trouble-modal-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 24px;
}

.trouble-modal-content {
    padding: 24px;
}

.trouble-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.trouble-item:last-child {
    margin-bottom: 0;
}

.trouble-bullet {
    color: #0d4cd3;
    font-size: 20px;
    font-weight: bold;
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.trouble-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.trouble-recovery-link {
    color: #0d4cd3;
    text-decoration: none;
    font-weight: 600;
}

.trouble-recovery-link:hover {
    text-decoration: underline;
}

/* Восстановление пароля стили */
.recovery-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 1500;
    overflow-y: auto;
}

.recovery-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    margin: 60px auto;
    position: relative;
}

.recovery-form-back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.recovery-form-logo {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recovery-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 32px;
    text-align: center;
}

/* Плавающие лейблы для восстановления пароля */
.recovery-input-group {
    position: relative;
    margin-bottom: 24px;
}

.recovery-floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0 4px;
    z-index: 1;
}

.recovery-floating-label.active,
.recovery-input:focus+.recovery-floating-label,
.recovery-input:not(:placeholder-shown)+.recovery-floating-label {
    top: -8px;
    font-size: 12px;
    color: #0065b1;
    font-weight: 500;
    background-color: white;
}

.recovery-input {
    width: 100%;
    height: 56px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 16px 8px 16px;
    margin-bottom: 0;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.recovery-input:focus {
    outline: none;
    background-color: white;
    border-color: #0065b1;
    box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.1);
}

.recovery-input:not(:placeholder-shown) {
    background-color: white;
    border-color: #e0e0e0;
}

.recovery-input::placeholder {
    color: transparent;
}

.recovery-button {
    width: 100%;
    height: 56px;
    background-color: #e9ecef;
    color: #adb5bd;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.recovery-button.active {
    background-color: #0d4cd3;
    color: white;
    cursor: pointer;
}

/* Выбор документа стили */
.document-selection-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 1600;
    overflow-y: auto;
}

.document-selection-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    margin: 60px auto;
    position: relative;
}

.document-selection-back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.document-selection-logo {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.document-selection-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 32px;
    text-align: center;
}

.document-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin-top: 24px;
}

.document-link {
    color: #0d4cd3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 16px 0;
    transition: all 0.2s;
    width: 100%;
    display: block;
}

.document-link:hover {
    background-color: #f8f9fa;
    text-decoration: underline;
}

.other-document-link {
    color: #0d4cd3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-top: 20px;
    text-align: center;
    padding: 12px 0;
}

.other-document-link:hover {
    text-decoration: underline;
}

/* Ввод документа стили */
.document-input-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 1700;
    overflow-y: auto;
}

.document-input-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    margin: 60px auto;
    position: relative;
}

.document-input-back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.document-input-logo {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.document-input-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 32px;
    text-align: center;
}

.document-input-input-group {
    position: relative;
    margin-bottom: 24px;
}

.document-input-floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0 4px;
    z-index: 1;
}

.document-input-floating-label.active,
.document-input-input:focus+.document-input-floating-label,
.document-input-input:not(:placeholder-shown)+.document-input-floating-label {
    top: -8px;
    font-size: 12px;
    color: #0065b1;
    font-weight: 500;
    background-color: white;
}

.document-input-input {
    width: 100%;
    height: 56px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 16px 8px 16px;
    margin-bottom: 0;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.document-input-input:focus {
    outline: none;
    background-color: white;
    border-color: #0065b1;
    box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.1);
}

.document-input-input:not(:placeholder-shown) {
    background-color: white;
    border-color: #e0e0e0;
}

.document-input-input::placeholder {
    color: transparent;
}

.document-input-button {
    width: 100%;
    height: 56px;
    background-color: #e9ecef;
    color: #adb5bd;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.document-input-button.active {
    background-color: #0d4cd3;
    color: white;
    cursor: pointer;
}

/* Смена пароля стили */
.password-change-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 2200;
    overflow-y: auto;
}

.password-change-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    margin: 60px auto 16px auto;
    position: relative;
    z-index: 1;
}

.password-change-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.password-change-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    text-align: center;
}

.password-change-subtitle .generate-link {
    color: #0d4cd3;
    text-decoration: none;
    cursor: pointer;
}

.password-change-subtitle .generate-link:hover {
    text-decoration: underline;
}

.password-change-input-group {
    position: relative;
    margin-bottom: 24px;
}

.password-change-floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: white;
    padding: 0 4px;
    z-index: 1;
}

.password-change-floating-label.active {
    top: -8px;
    font-size: 12px;
    color: #0065b1;
    font-weight: 500;
}

.password-change-input:focus+.password-change-floating-label,
.password-change-input:not(:placeholder-shown)+.password-change-floating-label {
    top: -8px;
    font-size: 12px;
    color: #0065b1;
    font-weight: 500;
}

.password-change-input {
    width: 100%;
    height: 56px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 16px 8px 16px;
    margin-bottom: 0;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.password-change-input:focus {
    outline: none;
    background-color: white;
    border-color: #0065b1;
    box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.1);
}

.password-change-input:not(:placeholder-shown) {
    background-color: white;
    border-color: #e0e0e0;
}

.password-change-input::placeholder {
    color: transparent;
}

.password-change-button {
    width: 100%;
    height: 56px;
    background-color: #e9ecef;
    color: #adb5bd;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.password-change-button.active {
    background-color: #0d4cd3;
    color: white;
    cursor: pointer;
}

/* Код подтверждения стили */
.code-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 2000;
    overflow-y: auto;
}

.code-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.code-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    font-weight: 400;
}

.code-inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
    gap: 8px;
}

.code-input {
    width: 48px;
    height: 56px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 0;
    color: #333;
}

.code-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.3);
}

.code-input.error {
    background-color: #ffebee;
    color: #d32f2f;
    animation: shake 0.5s;
}

@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    min-height: 20px;
}

.timer-container {
    text-align: center;
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}

#timer {
    color: #0d4cd3;
    font-weight: 600;
}

.resend-button {
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin: 0 auto;
    display: block;
}

/* Стили для экрана загрузки Госуслуг */
.gosuslugi-loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafcff;
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 77px;
    margin: 0;
}

.gosuslugi-loading-header {
    display: flex;
    justify-content: center;
    margin-bottom: 21px;
}

.gosuslugi-loading-main {
    display: flex;
    justify-content: center;
    padding: 0 17px;
    width: 100%;
}

.gosuslugi-loading-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 4px #e3ebfc, 0 24px 48px rgba(230, 235, 245, 0.4);
    border-radius: 12px;
    width: calc(100vw - 34px);
    max-width: 640px;
}

.gosuslugi-loading-title {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #0b1f33;
}

.gosuslugi-loading-subtitle {
    margin-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #66727f;
}

.gosuslugi-loading-dots-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.dot-flashing {
    width: 16px;
    height: 16px;
    background: #c5d3f1;
    position: relative;
    border-radius: 50%;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 0.5s;
}

.dot-flashing:before,
.dot-flashing:after {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    border-radius: 50%;
}

.dot-flashing:before {
    background: #c5d3f1;
    left: -32px;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 0s;
}

.dot-flashing:after {
    background: #c5d3f1;
    right: -32px;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 1.2s;
}

@keyframes dotFlashing {

    0%,
    25%,
    50% {
        background: #e0e9fc;
    }

    75% {
        background: #c5d3f1;
    }

    100% {
        background: #99b1e6;
    }
}

/* Адаптивные стили для загрузки */
@media all and (min-width: 768px) {
    .gosuslugi-loading-content {
        width: 640px;
    }

    .gosuslugi-loading-title {
        font-size: 24px;
        line-height: 32px;
    }

    .gosuslugi-loading-subtitle {
        font-size: 18px;
        line-height: 24px;
    }
}

@media all and (min-width: 1140px) {
    .gosuslugi-loading-content {
        width: 597px;
    }
}

@media (max-width: 480px) {
    .gosuslugi-loading-container {
        padding-top: 60px;
    }

    .gosuslugi-loading-main {
        padding: 0 12px;
    }

    .gosuslugi-loading-content {
        width: calc(100vw - 24px);
        padding: 20px;
    }
}

/* Стили для уведомлений */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.notification {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateX(100%);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.error {
    background-color: #f44336;
}

/* Стили для экрана ошибки */
.error-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 2500;
    overflow-y: auto;
}

.error-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    margin: 60px auto 16px auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    background-color: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #d32f2f;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 16px;
}

.error-message-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.error-instructions {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.error-instructions-title {
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.error-instructions-text {
    font-size: 14px;
    color: #856404;
    line-height: 1.4;
}

.error-back-button {
    width: 100%;
    height: 56px;
    background-color: #0d4cd3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.error-back-button:hover {
    background-color: #0a3fb8;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 480px) {
    .header {
        padding: 12px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo-title {
        font-size: 12px;
    }

    .logo-subtitle {
        font-size: 12px;
    }

    .phone-number {
        font-size: 16px;
    }

    .contact-text {
        font-size: 10px;
    }

    .mobile-app-icon {
        width: 80px;
        height: 80px;
    }

    .mobile-app-icon {
        width: 80px;
        height: 80px;
        padding: 12px;
        border-radius: 12px;
        margin: 4px;
        background-color: #002a66;
    }

    .trouble-modal {
        width: 95%;
        margin: 20px;
    }

    .trouble-modal-header {
        padding: 20px 20px 12px 20px;
    }

    .trouble-modal-title {
        font-size: 20px;
    }

    .trouble-modal-content {
        padding: 20px;
    }

    .trouble-text {
        font-size: 15px;
    }

    .gosuslugi-card,
    .gosuslugi-info-card {
        margin-left: 16px;
        margin-right: 16px;
        max-width: calc(100% - 32px);
    }

    .info-card-content {
        padding: 28px 20px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-text {
        font-size: 15px;
    }

    .mobile-apps-row {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .mobile-apps-icons {
        gap: 12px;
    }

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

    .gosuslugi-loading-content {
        padding: 40px 24px;
        margin: 20px;
    }

    .gosuslugi-loading-text {
        font-size: 20px;
    }

    .gosuslugi-loading-subtext {
        font-size: 14px;
    }
}

.gosuslugi-form-back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.show-password-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    color: #999;
    z-index: 3;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-password-btn:hover {
    opacity: 0.8;
}

.show-password-btn svg {
    width: 16px;
    height: 16px;
    fill: #999;
}

.gosuslugi-loading-logo img,
.recovery-form-logo img,
.gosuslugi-logo img {
    max-width: 100%;
    max-height: 50px;
}

/* Исправление цветопередачи для NashStore */
.mobile-app-icon[href*="nashstore"] img {
    filter: hue-rotate(0deg) saturate(1.2) brightness(1.1);
}

/* Контрольный вопрос стили */
.security-question-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3e8f4, #c8d5ea);
    z-index: 2100;
    overflow-y: auto;
}

.security-question-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    margin: 60px auto 16px auto;
    position: relative;
    z-index: 1;
}

.security-question-back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: #0d4cd3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.security-question-logo {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-question-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.security-question-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.security-question-input-group {
    position: relative;
    margin-bottom: 24px;
}

.security-question-floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0 4px;
    z-index: 1;
}

.security-question-floating-label.active,
.security-question-input:focus+.security-question-floating-label,
.security-question-input:not(:placeholder-shown)+.security-question-floating-label {
    top: -8px;
    font-size: 12px;
    color: #0065b1;
    font-weight: 500;
    background-color: white;
}

.security-question-input {
    width: 100%;
    height: 56px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 16px 8px 16px;
    margin-bottom: 0;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.security-question-input:focus {
    outline: none;
    background-color: white;
    border-color: #0065b1;
    box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.1);
}

.security-question-input:not(:placeholder-shown) {
    background-color: white;
    border-color: #e0e0e0;
}

.security-question-input::placeholder {
    color: transparent;
}

.security-question-button {
    width: 100%;
    height: 56px;
    background-color: #e9ecef;
    color: #adb5bd;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.security-question-button.active {
    background-color: #0d4cd3;
    color: white;
    cursor: pointer;
}

/* Error Modal Styles */
#errorModalOverlay .ep-modal {
    max-width: 400px;
    padding: 25px;
}

#errorModalOverlay .ep-modal-header {
    margin-bottom: 20px;
    align-items: flex-start;
}

#errorModalOverlay .ep-modal-icon {
    background-color: #ff8a00;
    width: 28px;
    height: 28px;
    font-size: 18px;
    margin-right: 15px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 50%;
}

#errorModalOverlay .ep-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#errorModalOverlay .ep-modal-body p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

#gosuslugiErrorLink {
    display: inline-block;
    margin-top: 15px;
    color: #1d6ce3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 16px;
}

#gosuslugiErrorLink:hover {
    color: #0a4db6;
    text-decoration: underline;
}