*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    padding: 16px;
}

.card {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

/* ---- Header ---- */
.card-header {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    height: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.card-header::before,
.card-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 20px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.card-header::before {
    width: 120px;
    height: 120px;
    right: -10px;
    top: -40px;
}

.card-header::after {
    width: 80px;
    height: 80px;
    right: 60px;
    top: 20px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 1;
    padding: 4px;
    line-height: 0;
}

/* ---- Body ---- */
.card-body {
    padding: 32px 28px 28px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.heading {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* ---- Input ---- */
.input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    padding: 0 14px;
    margin-bottom: 12px;
    height: 52px;
    transition: border-color 0.2s;
}

.input-wrapper.has-error {
    border-color: #e53935;
}

.phone-icon {
    margin-right: 10px;
    flex-shrink: 0;
    line-height: 0;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1a1a1a;
    background-color: transparent;
    font-family: inherit;
}

/* ---- Error ---- */
.error-msg {
    color: #e53935;
    font-size: 13px;
    margin-bottom: 10px;
    margin-top: -4px;
    display: none;
}

/* ---- Button ---- */
.continue-btn {
    width: 100%;
    height: 52px;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    font-family: inherit;
}

.continue-btn:hover {
    background-color: #c62828;
}

/* ---- Terms ---- */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    background-color: #e53935;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.terms-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    font-weight: normal;
}

.terms-text strong {
    color: #1a1a1a;
}

.red-link {
    color: #e53935;
    font-weight: 500;
    text-decoration: none;
}

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

/* RTL support */
[dir="rtl"] .phone-icon {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .terms {
    flex-direction: row-reverse;
}
