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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.login-section {
    margin: 30px 0;
}

.telegram-widget {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.setup-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-top: 20px;
}

.setup-info h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.setup-info p {
    color: #856404;
    margin-bottom: 10px;
}

.setup-info ol {
    color: #856404;
    padding-left: 20px;
}

.setup-info ol li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.setup-info code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.setup-info a {
    color: #0088cc;
    text-decoration: none;
}

.setup-info a:hover {
    text-decoration: underline;
}

.user-info {
    text-align: left;
}

.user-info h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2rem;
}

.profile-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #667eea;
    object-fit: cover;
}

.profile-basic h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-basic p {
    color: #7f8c8d;
    font-size: 1rem;
}

.profile-details {
    display: grid;
    gap: 15px;
}

.platform-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.platform-info h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.value {
    color: #2c3e50;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    max-width: 60%;
    word-break: break-all;
    text-align: right;
}

.logout-btn {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .value {
        max-width: 100%;
        text-align: left;
    }
}

/* Platform-specific sections */
.platform-section {
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

.platform-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2rem;
}

/* Android APK Download Section */
.download-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.app-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.app-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-actions {
    text-align: center;
    margin-bottom: 20px;
}

.download-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.download-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.download-note {
    color: #856404;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* iOS Account Creation Section */
.account-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.account-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.account-info p {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.account-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.username-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.username-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.username-input::placeholder {
    color: #adb5bd;
}

.register-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.register-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animation for smooth transitions */
.user-info, .platform-section {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
