/* ============================================================
   DK Game — Login Page CSS  (Daman-style mobile UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f4f8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

/* ── Mobile phone-width wrapper ── */
.dk-page {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: #f4f4f8;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Hero gradient header ── */
.dk-hero {
    background: linear-gradient(160deg, #ff5c5c 0%, #ff3b3b 45%, #e02020 100%);
    padding: 14px 20px 22px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.dk-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.dk-hero::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
}

/* back arrow */
.dk-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
    z-index: 2;
}

.dk-back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* brand logo row */
.dk-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin: 10px 0 16px;
    position: relative;
    z-index: 2;
}

.dk-brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.dk-brand-name {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dk-hero-sub {
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    line-height: 1.55;
    position: relative;
    z-index: 2;
}

/* ── Tab row ── */
.dk-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 5;
    margin-top: -2px;
}

.dk-tab {
    flex: 1;
    padding: 15px 0 13px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #aaa;
    border-bottom: 2px solid transparent;
    transition: all 0.22s;
    text-decoration: none;
}

.dk-tab svg {
    width: 20px;
    height: 20px;
}

.dk-tab.active {
    color: #ff3b3b;
    border-bottom-color: #ff3b3b;
}

/* ── Form card ── */
.dk-form-card {
    background: #fff;
    flex: 1;
    padding: 26px 22px 30px;
}

/* alert messages */
.dk-alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dk-alert-error {
    background: #fff1f1;
    color: #d93025;
    border: 1px solid #ffc8c8;
}

.dk-alert-success {
    background: #f0fff8;
    color: #0a7a3d;
    border: 1px solid #b0f0d0;
}

/* field labels with icon */
.dk-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dk-field-label .lbl-icon {
    width: 26px;
    height: 26px;
    background: #ff3b3b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}

.dk-field {
    margin-bottom: 20px;
}

/* phone row */
.dk-phone-row {
    display: flex;
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}

.dk-phone-code {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 13px;
    background: #f5f5f5;
    border-right: 1px solid #e8e8e8;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 72px;
    cursor: pointer;
}

.dk-phone-code svg {
    width: 12px;
    height: 12px;
    fill: #777;
}

.dk-input {
    width: 100%;
    padding: 13px 15px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.92rem;
    color: #222;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.dk-phone-row .dk-input {
    border: none;
    border-radius: 0;
    background: transparent;
}

.dk-input:focus {
    border-color: #ff3b3b;
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1);
}

.dk-phone-row:focus-within {
    border-color: #ff3b3b;
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1);
}

/* password wrapper */
.dk-pw-wrap {
    position: relative;
}

.dk-pw-wrap .dk-input {
    padding-right: 44px;
}

.dk-pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.dk-pw-toggle:hover {
    color: #ff3b3b;
}

/* remember row */
.dk-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 22px;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    user-select: none;
}

.dk-remember input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #ff3b3b;
    cursor: pointer;
}

/* buttons */
.dk-btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
    color: #555;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    margin-bottom: 14px;
}

.dk-btn-login:hover {
    background: linear-gradient(135deg, #ff5c5c 0%, #ff3b3b 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.3);
    transform: translateY(-1px);
}

.dk-btn-register {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #ff3b3b;
    border: 2px solid #ff3b3b;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.25s;
}

.dk-btn-register:hover {
    background: #ff3b3b;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.25);
}

/* ── Bottom icon row ── */
.dk-bottom-row {
    display: flex;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 14px 0 18px;
}

.dk-bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 0.73rem;
    color: #888;
    font-weight: 500;
    transition: color 0.2s;
}

.dk-bottom-link:hover {
    color: #ff3b3b;
}

.dk-bottom-link .bi-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: border-color 0.2s;
}

.dk-bottom-link:hover .bi-icon {
    border-color: #ff3b3b;
}

/* ── Email tab panel (hidden by default) ── */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}