/* ============================================================================
   ENDUSER LOGIN PAGE STYLES
   ============================================================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #34d399 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Container */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    height: 80px;
    margin-bottom: 2rem;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Phone Input Group */
.phone-input-group {
    margin: 2rem 0 1.5rem;
}

.phone-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Country Selector */
.country-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.country-option {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.country-option:hover {
    border-color: #10b981;
    background: #f8fafc;
}

.country-option.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: #10b981;
    font-weight: 700;
}

.country-flag {
    font-size: 1.5rem;
}

/* Area Code Display */
.area-code-display {
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    background: #f8fafc;
    color: #10b981;
    min-width: 70px;
    text-align: center;
}

/* Phone Input Fields */
.phone-part {
    padding: 1rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.phone-part-3 {
    width: 90px;
    flex-shrink: 0;
}

.phone-part-4 {
    width: 110px;
    flex-shrink: 0;
}

.phone-part:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.phone-part::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* Hidden input for form submission */
#full_phone_number {
    display: none;
}

/* Phone Preview */
.phone-preview {
    text-align: center;
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    letter-spacing: 1px;
}

/* Error Message */
.error-msg {
    color: #ef4444;
    font-size: 0.875rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ef4444;
}

/* Buttons */
.continue-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    letter-spacing: 0.3px;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.continue-btn:active {
    transform: translateY(-1px);
}

.continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.back-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    color: #64748b;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: block;
    text-decoration: none;
    text-align: center;
}

.back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .logo {
        height: 60px;
    }

    .phone-row {
        flex-wrap: wrap;
    }

    .area-code-display {
        width: 100%;
    }

    .phone-part-3,
    .phone-part-4 {
        flex: 1;
        min-width: 80px;
    }
}
