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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --bg-dark: #0a0f1c;
    --card-bg: rgba(30, 41, 59, 0.4);
    --input-bg: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.signup-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: -40px;
    left: 0;
    cursor: pointer;
    color: var(--text-main);
    font-size: 20px;
    z-index: 10;
}

.signup-header {
    margin-bottom: 30px;
}

.signup-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.signup-header p {
    color: var(--text-muted);
    font-size: 14px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.country-prefix {
    padding: 0 16px;
    border-right: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-main);
}

.input-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 15px;
}

.eye-icon {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.eye-icon:hover {
    color: var(--text-main);
}

.optional-badge {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 11px;
    color: #475569;
    background: rgba(71, 85, 105, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Success View */
.success-view {
    text-align: center;
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.success-modal {
    background: #1e293b;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-overlay.active .success-modal {
    transform: scale(1);
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.download-apk-btn {
    display: inline-block;
    width: 100%;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.download-apk-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
