/**
 * Phoenix Warehouse Signup CSS
 * Enterprise-level styles for warehouse partner registration
 * 
 * @version 1.0.0
 * @author Phoenix Development Team
 * @description Modern, responsive warehouse signup forms
 */

/* ===== IMPORT PHOENIX VARIABLES ===== */
@import url("phoenix-theme.74803d5c6c23.css");

/* ===== WAREHOUSE SIGNUP LAYOUT ===== */

.warehouse-signup-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--phoenix-light-gray) 0%, #e2e8f0 100%);
    padding: 2rem 0;
}

.warehouse-signup-card {
    background: var(--phoenix-white);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.warehouse-signup-header {
    background: var(--phoenix-gradient-primary);
    color: var(--phoenix-white);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.warehouse-signup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='0.25' fill='%23ffffff'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='0.5' fill='%23ffffff'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center bottom;
    background-size: cover;
    opacity: 0.1;
    animation: gentleWave 15s ease-in-out infinite;
}

.warehouse-signup-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center bottom;
    background-size: cover;
    opacity: 0.05;
    animation: gentleWave 20s ease-in-out infinite reverse;
}

.warehouse-signup-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.warehouse-signup-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.warehouse-signup-body {
    padding: 2.5rem;
}

/* ===== STEP INDICATOR ===== */

.phoenix-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.phoenix-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--phoenix-white);
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.phoenix-step.active {
    background: var(--phoenix-gradient-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.phoenix-step.completed {
    background: var(--phoenix-accent-green);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.phoenix-step.inactive {
    background: var(--phoenix-gray-lighter);
    color: var(--phoenix-gray);
}

.phoenix-step-line {
    width: 80px;
    height: 3px;
    background: var(--phoenix-gray-lighter);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.phoenix-step-line.completed {
    background: var(--phoenix-accent-green);
}

.phoenix-step-line.active {
    animation: greenToBlueTransition 8s ease-in-out infinite;
}

@keyframes greenToBlueTransition {
    0%, 100% {
        background-color: var(--phoenix-accent-green);
    }
    50% {
        background-color: var(--phoenix-primary-blue);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .phoenix-step-line.active {
        animation: none;
        background: var(--phoenix-accent-green);
    }
}

/* ===== FORM STYLING ===== */

.phoenix-form-group {
    margin-bottom: 1.5rem;
}

.phoenix-form-label {
    font-weight: 600;
    color: var(--phoenix-black);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.phoenix-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.phoenix-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    background: #ffffff;
}

.phoenix-form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.phoenix-form-control:hover {
    border-color: var(--phoenix-primary-blue-dark);
}

.phoenix-form-help {
    font-size: 0.875rem;
    color: var(--phoenix-gray);
    margin-top: 0.25rem;
}

.phoenix-form-error {
    color: var(--phoenix-accent-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.phoenix-form-error::before {
    content: '⚠️';
    font-size: 0.75rem;
}

/* ===== ALERT STYLING ===== */

.phoenix-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.phoenix-alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid var(--phoenix-primary-blue);
}

.phoenix-alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--phoenix-accent-green);
}

.phoenix-alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.phoenix-alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--phoenix-accent-red);
}

/* ===== BUTTON STYLING ===== */

.phoenix-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.phoenix-btn-primary {
    background: var(--phoenix-gradient-primary);
    color: var(--phoenix-white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.phoenix-btn-primary:hover {
    background: var(--phoenix-primary-blue-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: var(--phoenix-white);
    text-decoration: none;
}

.phoenix-btn-secondary {
    background: transparent;
    color: var(--phoenix-gray);
    border: 2px solid var(--phoenix-gray-lighter);
}

.phoenix-btn-secondary:hover {
    background: var(--phoenix-light-gray);
    border-color: var(--phoenix-gray);
    color: var(--phoenix-black);
    text-decoration: none;
}

.phoenix-btn-success {
    background: linear-gradient(135deg, var(--phoenix-accent-green) 0%, #059669 100%);
    color: var(--phoenix-white);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.phoenix-btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
    color: var(--phoenix-white);
    text-decoration: none;
}

.phoenix-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-height: 56px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .warehouse-signup-container {
        padding: 1rem;
    }
    
    .warehouse-signup-header {
        padding: 1.5rem;
    }
    
    .warehouse-signup-header h1 {
        font-size: 1.5rem;
    }
    
    .warehouse-signup-body {
        padding: 1.5rem;
    }
    
    .phoenix-step-indicator {
        margin-bottom: 2rem;
    }
    
    .phoenix-step {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .phoenix-step-line {
        width: 60px;
    }
    
    .phoenix-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .phoenix-step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .phoenix-step-line {
        width: 25px;
        height: 2px;
    }

    .phoenix-step-indicator {
        margin-bottom: 1.5rem;
    }

    .warehouse-signup-header h1 {
        font-size: 1.5rem;
    }

    .warehouse-signup-header p {
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* ===== UTILITY CLASSES ===== */

.phoenix-text-center { text-align: center; }
.phoenix-text-muted { color: var(--phoenix-gray); }
.phoenix-mb-0 { margin-bottom: 0; }
.phoenix-mb-2 { margin-bottom: 0.5rem; }
.phoenix-mb-3 { margin-bottom: 1rem; }
.phoenix-mb-4 { margin-bottom: 1.5rem; }
.phoenix-mt-3 { margin-top: 1rem; }
.phoenix-mt-4 { margin-top: 1.5rem; }

.phoenix-d-grid { display: grid; }
.phoenix-gap-2 { gap: 0.5rem; }
.phoenix-gap-3 { gap: 1rem; }

.phoenix-row { display: flex; flex-wrap: wrap; margin: 0 -0.5rem; }
.phoenix-col { flex: 1; padding: 0 0.5rem; }
.phoenix-col-md-6 { flex: 0 0 50%; padding: 0 0.5rem; }

@media (max-width: 768px) {
    .phoenix-col-md-6 { flex: 0 0 100%; }
}

/* ===== ANIMATIONS ===== */

@keyframes gentleWave {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-5px) translateY(-5px); }
    50% { transform: translateX(0px) translateY(-10px); }
    75% { transform: translateX(5px) translateY(-5px); }
}

/* Bubble Particles */
.warehouse-signup-header .bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: bubbleFloat 15s infinite linear;
    pointer-events: none;
}

.warehouse-signup-header .bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.warehouse-signup-header .bubble:nth-child(2) {
    width: 30px;
    height: 30px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.warehouse-signup-header .bubble:nth-child(3) {
    width: 15px;
    height: 15px;
    left: 35%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.warehouse-signup-header .bubble:nth-child(4) {
    width: 25px;
    height: 25px;
    left: 50%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.warehouse-signup-header .bubble:nth-child(5) {
    width: 18px;
    height: 18px;
    left: 70%;
    animation-delay: 8s;
    animation-duration: 16s;
}

.warehouse-signup-header .bubble:nth-child(6) {
    width: 22px;
    height: 22px;
    left: 85%;
    animation-delay: 10s;
    animation-duration: 14s;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}
