/* ===== CREATIVE POSTUGO SIGNUP PAGE - ULTRA MODERN COMPACT DESIGN ===== */

/* ===== ROOT VARIABLES - POSTUGO BRAND COLOR PALETTE ===== */
:root {
    /* Primary Brand Colors */
    --primary-purple: #6c63ff;
    --secondary-purple: #a18cd1;
    
    /* Core Colors */
    --primary-color: #6c63ff;
    --primary-dark: #5a52d5;
    --secondary-color: #a18cd1;
    --accent-color: #c4b5fd;
    
    /* Text Colors */
    --text-color: #1F2937;
    --light-text: #6B7280;
    --white: #ffffff;
    
    /* UI Colors */
    --border-color: rgba(108, 99, 255, 0.2);
    --background-light: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.95);
    
    /* Status Colors */
    --error-color: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

/* ===== BODY - PROFESSIONAL SOCIAL BUSINESS BACKGROUND ===== */
body {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, #a18cd1 0%, #6c63ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', Arial, sans-serif;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Social Network Connection Pattern - Main Layer */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.12) 3px, transparent 3px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.1) 4px, transparent 4px),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.12) 3px, transparent 3px),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 3px, transparent 3px),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.08) 4px, transparent 4px),
        radial-gradient(circle at 40% 15%, rgba(255, 255, 255, 0.12) 2px, transparent 2px),
        radial-gradient(circle at 15% 45%, rgba(255, 255, 255, 0.1) 3px, transparent 3px),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L55 17.5V42.5L30 55L5 42.5V17.5L30 5z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Social Connection Lines - Secondary Layer */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='80' y1='80' x2='180' y2='120' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3Cline x1='180' y1='120' x2='280' y2='100' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cline x1='180' y1='120' x2='150' y2='250' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='80' cy='80' r='4' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='180' cy='120' r='6' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='280' cy='100' r='4' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='50' y1='50' x2='150' y2='100' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cline x1='150' y1='100' x2='250' y2='80' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cline x1='150' y1='100' x2='100' y2='200' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cline x1='100' y1='200' x2='200' y2='250' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='4' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='150' cy='100' r='6' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='250' cy='80' r='4' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='100' cy='200' r='5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='200' cy='250' r='4' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
    background-size: 400px 400px, 300px 300px;
    background-position: 0 0, 100px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* ===== MAIN CONTAINER ===== */
.container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

/* ===== GLASSMORPHISM SIGNUP CARD ===== */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 60px -15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 100px rgba(108, 99, 255, 0.15);
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 680px;
    max-height: 95vh;
    overflow-y: scroll;
    overflow-x: hidden;
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 3;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.login-container::-webkit-scrollbar {
    display: none;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Decorative Corner Accents */
.login-container::before,
.login-container::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.4;
    pointer-events: none;
}

.login-container::before {
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #a18cd1, #6c63ff);
}

.login-container::after {
    bottom: -15px;
    left: -15px;
    background: linear-gradient(135deg, #6c63ff, #a18cd1);
}

/* ===== BUSINESS HEADER ===== */
.business-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.business-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.3rem;
    border: 2px solid #6c63ff;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.business-header h3 {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    background: linear-gradient(135deg, #6c63ff, #a18cd1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SIGNUP HEADER ===== */
.login-header {
    text-align: center;
    margin-bottom: 0.6rem;
    position: relative;
}

.login-header .logo {
    position: relative;
    background: linear-gradient(135deg, #a18cd1 0%, #6c63ff 100%);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem auto;
    box-shadow: 
        0 8px 25px rgba(108, 99, 255, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 0 4px rgba(108, 99, 255, 0.2);
}

.login-header .logo::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a18cd1, #6c63ff);
    z-index: -1;
    animation: ringPulse 3s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.login-header .logo i {
    font-size: 1.3rem;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.login-header h2 {
    margin: 0 0 0.15rem 0;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c63ff, #a18cd1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--light-text);
    font-size: 0.75rem;
    font-weight: 400;
}

/* ===== CREATIVE TWO-COLUMN FORM GRID ===== */
.signup-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    margin-bottom: 0.5rem;
}

/* Full width items */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* ===== FORM STYLING ===== */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

/* ===== CREATIVE INPUT FIELDS (Matches Login.css) ===== */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.65rem 2.8rem 0.65rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
                linear-gradient(135deg, rgba(108, 99, 255, 0.3), rgba(161, 140, 209, 0.3)) border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: var(--text-color);
}

.form-group input::placeholder {
    color: #9CA3AF;
    font-size: 0.85rem;
}

.form-group input:focus {
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, #6c63ff, #a18cd1) border-box;
    box-shadow: 
        0 0 0 3px rgba(108, 99, 255, 0.1),
        0 10px 25px rgba(108, 99, 255, 0.15);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c63ff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.7;
}

.form-group input:focus + .input-icon,
.input-wrapper:hover .input-icon {
    color: #a18cd1;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.toggle-password {
    cursor: pointer;
    pointer-events: auto;
}

/* ===== OTP SECTION (Full Width) ===== */
#emailOtpSection {
    margin-top: 0.4rem;
    display: none;
    padding: 0.5rem;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

#emailOtpSection input {
    padding: 0.4rem 0.6rem;
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
}

#emailOtpSection input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.1);
}

#emailOtpSection button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sendOtpBtn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #6c63ff, #a18cd1);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

#sendOtpBtn:hover {
    background: linear-gradient(135deg, #5a52d5, #8b7ac9);
    transform: translateY(-50%) scale(1.02);
}

#verifyOtpBtn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

#verifyOtpBtn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

#otpStatus {
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.6rem;
}

/* ===== DRAG AND DROP FILE UPLOAD (Compact) ===== */
.drag-upload {
    width: 100%;
    background: var(--glass-bg);
    border: 2px dashed rgba(108, 99, 255, 0.4);
    border-radius: 10px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;    user-select: none;}

.drag-upload:hover,
.drag-upload.drag-active {
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.06);
}

.drag-upload-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--light-text);
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
}

.drag-upload-icon {
    font-size: 1.4rem;
    color: #6c63ff;
}

.drag-upload-text {
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 500;
}

.drag-upload-preview {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-upload-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(108, 99, 255, 0.3);
    border: 2px solid #6c63ff;
}

.drag-upload-input {
    display: none;
}

/* ===== CREATIVE SIGNUP BUTTON (Matches Login.css) ===== */
.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #6c63ff 0%, #a18cd1 100%);
    background-size: 200% 200%;
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(108, 99, 255, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.8rem;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(108, 99, 255, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-loader {
    display: none;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--white);
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    display: block;
}

/* ===== OR DIVIDER ===== */
.or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    gap: 1rem;
}

.or-divider hr {
    flex: 1;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.3), transparent);
}

.or-divider span {
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0.5rem;
    position: relative;
}

/* ===== SOCIAL SIGNUP SECTION ===== */
.social-signup-section {
    margin: 0;
    text-align: center;
}

.google-signup-btn {
    background: white;
    color: #444;
    border: 2px solid rgba(108, 99, 255, 0.25);
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(108, 99, 255, 0.1);
    width: 100%;
    justify-content: center;
}

.google-signup-btn:hover {
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.2);
}

.google-signup-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ===== SIGNUP LINK ===== */
.signup-link {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--light-text);
}

.signup-link a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.signup-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #6c63ff, #a18cd1);
    transition: width 0.3s ease;
}

.signup-link a:hover {
    color: #a18cd1;
}

.signup-link a:hover::after {
    width: 100%;
}

/* ===== ANIMATED FLOATING SHAPES ===== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.25), transparent);
    top: 10%;
    left: 15%;
    animation: floatShape1 15s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(161, 140, 209, 0.2), transparent);
    bottom: 15%;
    right: 10%;
    animation: floatShape2 18s ease-in-out infinite;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.18), transparent);
    top: 60%;
    left: 75%;
    animation: floatShape3 12s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -25px) scale(1.08); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(0.92); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, 20px) scale(1.1); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-container {
        max-width: 95%;
        padding: 1rem 1.2rem;
        margin: 0 auto;
    }
    
    .signup-form-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .login-header h2 {
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input {
        font-size: 0.85rem;
        padding: 0.6rem 2.5rem 0.6rem 0.9rem;
    }
    
    .or-divider {
        margin: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .login-container {
        padding: 0.8rem 1rem;
        border-radius: 16px;
        margin: 0 auto;
    }
    
    .login-header .logo {
        width: 40px;
        height: 40px;
    }
    
    .login-header .logo i {
        font-size: 1.1rem;
    }
    
    .business-header img {
        width: 35px;
        height: 35px;
    }
    
    .business-header h3 {
        font-size: 0.85rem;
    }
}

@media (max-height: 700px) {
    .container {
        align-items: center;
    }
    
    .login-container {
        padding: 1rem 1.5rem;
        margin: 0 auto;
    }
    
    .login-header {
        margin-bottom: 0.4rem;
    }
    
    .login-header .logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0.3rem;
    }
    
    .login-header h2 {
        font-size: 0.9rem;
    }
    
    .login-header p {
        font-size: 0.7rem;
    }
    
    .business-header {
        margin-bottom: 0.4rem;
    }
    
    .signup-form-grid {
        gap: 0.4rem 0.8rem;
    }
    
    .form-group label {
        margin-bottom: 0.15rem;
        font-size: 0.7rem;
    }
    
    .form-group input {
        padding: 0.4rem 2rem 0.4rem 0.7rem;
    }
    
    .drag-upload {
        padding: 0.4rem;
    }
    
    .drag-upload-icon {
        font-size: 1.2rem;
    }
    
    .drag-upload-text {
        font-size: 0.7rem;
    }
    
    .login-btn {
        margin-top: 0.4rem;
        height: 38px;
        font-size: 0.8rem;
    }
    
    .or-divider {
        margin: 0.6rem 0;
    }
    
    .or-divider span {
        font-size: 0.75rem;
    }
    
    .social-signup-section {
        margin: 0;
    }
    
    .google-signup-btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .signup-link {
        margin-top: 0.4rem;
        font-size: 0.75rem;
    }
}
