html,
body {
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #f5f5f5;
    background-size: cover;
}

.form-signin {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.ccexpresslogo {
    width: 80%;
    max-width: 200px;
}

/* Uniform styles for all auth pages */
.form-floating .form-control {
    background-color: #343a40;
    color: white;
    border: 1px solid #ccc;
    text-align: center;
}

.form-floating .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(38, 143, 255, 0.5);
}

.form-floating label {
    color: white;
    text-align: center;
}

/* Hide label when input is focused or has value */
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0;
    visibility: hidden;
}

.form-check-label {
    color: black;
}

.text-primary {
    color: #007bff !important;
}

.btn-signin {
    background-color: #ffffff;
    border: 1px solid #d0d7e2;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.15);
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    background-color: #f8f9fc;
    border-color: #5b9bd5;
    color: #2c3e50;
    box-shadow: 0 4px 10px rgba(91, 155, 213, 0.25);
    transform: translateY(-2px);
}

.text-white {
    color: white !important;
}

h1, h2, h3, h4, h5, h6 {
    color: white;
}

/* Background image styling - полностью видно без скролла */
body {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Captcha styling */
.captcha {
    width: 100%;
    max-width: 100%;
    height: auto; /* Автоматическая высота по пропорциям */
    min-height: calc(0.9rem * 1.5 + 0.6rem * 2 + 2px); /* Минимум как у input */
    max-height: 80px; /* Максимальная высота для красоты */
    display: block;
    object-fit: cover; /* Заполнить весь блок */
}

/* Form floating margins */
.form-floating {
    margin-bottom: 0.75rem !important;
}

/* Pay for activation page styles - мягкая синяя палитра */
body .card {
    border: 2px solid #2c3e50 !important; /* Темная рамка */
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    border-radius: 0.5rem !important; /* Одинаковое скругление со всех сторон */
    overflow: hidden; /* Чтобы содержимое не выходило за скругленные углы */
}

body .card .card-body {
    background-color: #f8f9fc !important; /* Очень светлый голубоватый */
    font-size: 1.05rem !important; /* Увеличенный шрифт */
}

body .card .card-header {
    background-color: #2c3e50 !important; /* Мягкий темно-синий */
    color: #ffffff !important;
}

body .card .card-header h3,
body .card .card-header h5 {
    color: #ffffff !important; /* Белый текст для заголовков */
    font-size: 1.4rem !important;
}

/* Вложенные карточки внутри card-body */
body .card .card-body .card {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body .card .card-body .card .card-header {
    background-color: #34495e !important; /* Чуть светлее темно-синий */
    color: #ffffff !important;
}

body .card .card-body .card .card-header h5 {
    color: #ffffff !important; /* Белый текст для Bitcoin Payment Address */
    font-size: 1.2rem !important;
    margin: 0 !important;
}

body .card .card-body .card .card-body {
    background-color: #ffffff !important;
}

/* Стили для pay_for_activation - более мягкие инпуты */
body .card .card-body input.form-control {
    background-color: #ecf0f5 !important; /* Светло-серый с синим оттенком */
    color: #2c3e50 !important; /* Темный текст */
    border: 1px solid #d0d7e2 !important;
}

body .card .card-body input.form-control:focus {
    background-color: #e8eef5 !important;
    color: #2c3e50 !important;
    border-color: #5b9bd5 !important; /* Мягкий синий */
    box-shadow: 0 0 0 0.2rem rgba(91, 155, 213, 0.25) !important;
}

/* Заголовки в карточке */
body .card .card-body h4,
body .card .card-body h5 {
    color: #2c3e50 !important; /* Мягкий темно-синий */
    font-size: 1.3rem !important;
}

body .card .card-body h4 {
    font-size: 1.4rem !important;
}

/* Текст в карточке */
body .card .card-body .text-success {
    color: #52c41a !important; /* Более яркий зеленый */
    font-weight: 700;
}

body .card .card-body .text-muted {
    color: #8e99ab !important; /* Более светлый серый */
}

/* Алерты с мягкими цветами */
body .card .alert-info {
    background-color: #e8f4fd !important;
    border-color: #bee5eb !important;
    color: #2c5f7c !important;
}

body .card .alert-warning {
    background-color: #fff3e0 !important;
    border-color: #ffe0b2 !important;
    color: #8a6d3b !important;
}

/* Compact font sizes */
h1, h2, h3, h4, h5, h6 {
    font-size: 1.3rem !important;
}

.form-control, .form-control-lg {
    font-size: 0.9rem !important;
    padding: 0.6rem 0.75rem !important;
}

.form-floating label {
    font-size: 0.85rem !important;
}

.btn-lg {
    font-size: 1rem !important;
    padding: 0.65rem 1rem !important;
}

p, .text-muted, .text-white, a {
    font-size: 1rem !important;
}

/* Bold text under buttons */
.text-white, .text-center.text-white {
    font-weight: 750 !important;
}

.text-center.text-white a {
    font-weight: 700 !important;
}