:root {
    --clip-orange: #FF5C00;
    --clip-orange-hover: #E05100;
    --clip-orange-light: #FFF0E6;
    --clip-dark: #2D2D2D;
    --clip-gray: #F7F8FA;
    --text-gray: #7A7A7A;
    --green-tag: #00875A;
    --error-red: #E53935;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.global-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    z-index: 0;
}

.video-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-half video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 4px rgba(255,255,255,0.8);
}

@keyframes fall {
    0% { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(105vh) rotate(360deg); }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 12px; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; font-size: 8px; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; font-size: 14px; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 12s; animation-delay: 0s; font-size: 10px; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 9s; animation-delay: 3s; font-size: 16px; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: 1s; font-size: 9px; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 8s; animation-delay: 2s; font-size: 13px; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10s; animation-delay: 0s; font-size: 7px; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 9s; animation-delay: 4s; font-size: 11px; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 13s; animation-delay: 2s; font-size: 15px; }
.snowflake:nth-child(11) { left: 45%; animation-duration: 11s; animation-delay: 5s; font-size: 10px; }
.snowflake:nth-child(12) { left: 75%; animation-duration: 12s; animation-delay: 1s; font-size: 12px; }

.page-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: transparent;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    pointer-events: none;
}

.header-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    pointer-events: auto;
}

.view-section {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.view-section.active {
    display: flex;
}

.auth-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clip-orange);
}

.auth-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    color: var(--clip-dark);
    margin-bottom: 6px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

.highlight-orange {
    color: var(--clip-orange);
    font-weight: 800;
    font-size: 17px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.auth-form {
    width: 100%;
}

.input-group { margin-bottom: 18px; }

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--clip-dark);
    margin-bottom: 6px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #FAFAFA;
}

.password-wrapper input {
    padding-right: 44px;
}

.input-group input:focus {
    border-color: var(--clip-orange);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.1);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--clip-orange);
    background-color: rgba(255, 92, 0, 0.08);
}

.btn-primary {
    background-color: var(--clip-orange);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 92, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--clip-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 92, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.otp-inputs-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    width: 100%;
}

.otp-input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--clip-dark);
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background-color: #FAFAFA;
    padding: 0;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: var(--clip-orange);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.1);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: var(--clip-orange);
    background-color: var(--clip-orange-light);
}

.nip-input {
    font-size: 28px !important;
    -webkit-text-security: disc;
    letter-spacing: 2px;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.spinner-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid var(--clip-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #FFFFFF;
    padding: 32px 24px;
    border-radius: 24px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-logo {
    height: 40px;
    margin-bottom: 20px;
}

.loading-bar-container {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--clip-orange);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.success-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gift-icon {
    font-size: 54px;
    color: var(--clip-orange);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--clip-dark);
    margin-bottom: 10px;
}

.modal-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 24px;
}

.gl-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
}

.gl-prefix {
    font-size: 28px;
    font-weight: 700;
    color: var(--clip-dark);
}

.gl-inputs {
    display: flex;
    gap: 8px;
}

.gl-input {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--clip-dark);
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    background-color: #FAFAFA;
}

.gl-input:focus {
    border-color: var(--clip-orange);
    outline: none;
}