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

:root {
    --bg-color: #000000;
    --card-bg: #1C1C1E;
    --input-border: rgba(255, 255, 255, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    
    /* NEXUS LOGO GRADIENT COLORS */
    --nexus-orange: #FF9900;  /* Bright top orange */
    --nexus-red: #FF2E00;     /* Deep bottom red */
    --logo-gradient: linear-gradient(135deg, var(--nexus-orange) 0%, var(--nexus-red) 100%);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 40px;
}

.app-container {
    width: 100%;
    max-width: 500px; /* WIDENED from 400px to 500px */
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header --- */
.header-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.app-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(255, 87, 34, 0.4)); 
}

h1 {
    font-size: 24px;
    font-weight: 700;
    /* Text Gradient matching logo */
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Profile Upload --- */
.profile-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.profile-circle {
    width: 100px;
    height: 100px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    overflow: hidden;
}

.profile-circle:hover {
    border-color: var(--nexus-orange);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

.default-avatar-icon {
    font-size: 40px;
    color: rgba(255,255,255,0.3);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-badge {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: var(--logo-gradient); 
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-color);
    transform: translate(50%, 50%);
    z-index: 2;
}

.camera-badge i {
    font-size: 12px;
    color: white;
}

.add-photo-text {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Form Styles --- */
.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.input-group {
    width: 100%;
    position: relative;
}

/* Input Design */
.input-with-icon {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--input-border);
    display: flex;
    align-items: center;
    transition: border-color 0.3s;
}

.input-with-icon:focus-within {
    border-color: var(--nexus-orange);
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    z-index: 1;
}

input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 16px 16px 16px 45px;
    font-size: 15px;
    outline: none;
}

select {
    width: 100%;
    background: var(--card-bg);
    border: none;
    color: white;
    padding: 16px 16px 16px 45px;
    font-size: 15px;
    outline: none;
    border-radius: 12px;
    appearance: none; /* Hides default arrow */
}

input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* --- Phone Section --- */
.phone-group {
    display: flex;
    gap: 10px;
}

.country-select-wrapper {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--input-border);
    display: flex;
    align-items: center;
    padding: 0;
    width: 50%; /* INCREASED WIDTH FOR COUNTRY NAME */
    position: relative;
    overflow: hidden;
}

.country-select-wrapper select {
    padding: 16px 10px;
    width: 130%; /* Force width larger than container to hide scrollbar if needed */
    background: transparent;
    border: none;
    color: white;
    font-size: 13px; /* Slightly smaller text for long names */
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    padding-right: 20px;
}

.country-select-wrapper select option {
    background: #000; /* Dropdown background color */
}

.phone-input-wrapper {
    width: 50%; /* ADJUSTED WIDTH */
}

/* --- Create Account Button --- */
.btn-primary {
    margin-top: 10px;
    background: var(--logo-gradient); 
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.5);
    filter: brightness(1.1);
}

/* --- Footer --- */
.footer-text {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-text a {
    color: var(--nexus-orange);
    text-decoration: none;
    font-weight: 600;
}

.message-area {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: var(--text-secondary);
    cursor: pointer;
}

.select-arrow-right {
    position: absolute;
    right: 15px;
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 12px;
}