/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #b0b0b0;
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    padding: 0 20px 80px;
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

h2 {
    font-size: 20px;
    color: #d4af37;
}

h3 {
    font-size: 18px;
    color: #d4af37;
}

p {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 400;
}

a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #d4af37;
}

a:hover {
    color: #f8e6a6;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: rgba(20, 20, 20, 0.9);
}

.form-group input::placeholder {
    color: #666666;
    opacity: 0.7;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(184, 151, 43, 0.9) 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #d4af37 0%, #b8972b 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #b0b0b0;
    user-select: none;
    font-weight: 400;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #d4af37;
    background: rgba(20, 20, 20, 0.9);
}

.checkbox-container input:checked ~ .checkmark {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "✓";
    color: #d4af37;
    font-size: 12px;
    font-weight: bold;
}

/* Card Styles */
.card {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.3;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.8) 8%, rgba(30, 30, 30, 0.8) 18%, rgba(15, 15, 15, 0.8) 33%);
    background-size: 800px 104px;
    border-radius: 12px;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Responsive Design */
@media (max-width: 375px) {
    .app-container {
        width: 100%;
        box-shadow: none;
    }
    
    .main-content {
        padding: 0 16px 80px;
        padding-top: 80px;
    }
}

@media (min-height: 800px) {
    body {
        align-items: center;
    }
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37 0%, #b8972b 100%);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b8972b 0%, #d4af37 100%);
}

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}