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

html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a1628 linear-gradient(180deg, #0a1628 0%, #1a2a4a 50%, #0a1628 100%);
    color: #ffffff;
    overflow-x: hidden;
}

body {
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(30, 60, 120, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #1a2a4a 50%, #0a1628 100%);
    background-attachment: fixed;
    /* min-height: 100vh; */
    min-height: -webkit-fill-available;
    background-position: center;
}

/* Stars background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 250px 160px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 350px 200px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Header */
.header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 0;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.lang-icon {
    font-size: 16px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-selector:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(30, 40, 60, 0.95);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s;
    min-width: 170px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.language-selector:hover .lang-dropdown,
.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    padding: 12px 15px;
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Image */
.logo-img {
    width: 120px;
    max-width: 50%;
    height: auto;
    margin-bottom: 8px;
}

.company-name {
    font-size: 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Content Section */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    margin: 8px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-blue {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-blue:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-blue:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-icon {
    font-size: 18px;
}

.btn-icon-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-svg-icon {
    flex-shrink: 0;
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .title {
        font-size: 20px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}