/* Customer Signup Page - Mobile-First Design */

/* Base Mobile Layout */
.signup-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Business logo inside signup card */
.signup-brand-logo {
    margin-bottom: 1rem;
    text-align: center;
}
.signup-brand-logo img {
    max-width: 120px;
    max-height: 64px;
    object-fit: contain;
}

/* Card Container - Single Column - Mobile Only */
.signup-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(123, 31, 162, 0.15);
}

/* Header Section */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Form Layout - Single Column */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Labels - Above Fields */
.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    font-size: 1.125rem;
}

/* Input Fields - Mobile Optimized */
.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1rem; /* 16px minimum to prevent zoom on iOS */
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    color: #111827;
    transition: all 0.2s;
    /* Touch target: 48px minimum */
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: #7B1FA2;
    box-shadow: 0 0 0 4px rgba(123, 31, 162, 0.1);
}

.form-control:disabled {
    background: #F9FAFB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.form-control::placeholder {
    color: #9CA3AF;
}

/* Field Hints */
.field-hint {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* Checkbox Group */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    /* Touch target: 24px minimum */
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #7B1FA2;
}

.checkbox-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.checkbox-text a {
    color: #7B1FA2;
    text-decoration: underline;
}

/* Buttons - 48px Touch Target */
.btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Touch target: 48px minimum */
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #7B1FA2;
    border: 2px solid #7B1FA2;
}

.btn-secondary:active {
    background: #F3E5F5;
    transform: scale(0.98);
}

.btn-lg {
    padding: 1.125rem 1.5rem;
    font-size: 1.0625rem;
    min-height: 52px;
}

.btn-block {
    width: 100%;
}

/* Button Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.privacy-icon {
    font-size: 1.25rem;
}

.privacy-note p {
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0;
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon-lg {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

.success-logo-wrap {
    margin-bottom: 1rem;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.success-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: bounce 0.6s ease;
}
.success-logo-check {
    font-size: 2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.success-subtitle {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 2rem 0;
}

.success-details {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #374151;
}

.success-item:not(:last-child) {
    border-bottom: 1px solid #E5E7EB;
}

.success-check {
    font-size: 1.25rem;
}

.next-steps-info {
    background: #F3E5F5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.next-steps-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #7B1FA2;
    margin: 0 0 0.5rem 0;
}

.next-steps-info p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

/* Processing Card */
.processing-card {
    text-align: center;
    padding: 3rem 2rem;
}

.processing-animation {
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #7B1FA2;
}

.icon-line {
    height: 5px;
    background-color: #7B1FA2;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(123, 31, 162, 0.2);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: white;
}

.processing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.processing-text {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-small {
    max-width: 360px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F3F4F6;
    border-radius: 8px;
    font-size: 1.25rem;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:active {
    background: #E5E7EB;
}

.modal-body {
    padding: 1.5rem;
}

/* Responsive - Larger Phones */
@media (min-width: 400px) {
    .signup-card {
        padding: 2.5rem 2rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
}

/* Landscape Mode - Adjust for Keyboard */
@media (max-height: 500px) and (orientation: landscape) {
    .signup-container {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .signup-card {
        margin: 0.5rem 0;
        padding: 1.5rem 1.25rem;
    }
    
    .form-header {
        margin-bottom: 1rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-subtitle {
        font-size: 0.875rem;
    }
    
    .signup-form {
        gap: 1rem;
    }
}

/* Desktop - Keep Mobile Width */
@media (min-width: 768px) {
    .signup-container {
        padding: 2rem;
    }
    
    .signup-card {
        max-width: 420px;
    }
}

/* Force mobile-only width even on large screens */
@media (min-width: 1024px) {
    .signup-card {
        max-width: 420px;
    }
}

/* Show to Staff Message */
.show-to-staff-message {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
    border: 3px solid #FF4500;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.show-to-staff-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.show-to-staff-icon {
    font-size: 1.75rem;
    color: white;
    animation: wave 1.5s ease-in-out infinite;
}

.show-to-staff-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.show-to-staff-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

/* Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5);
        transform: scale(1.02);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Mobile optimizations for Show to Staff message */
@media (max-width: 480px) {
    .show-to-staff-message {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
    
    .show-to-staff-text {
        font-size: 1.25rem;
    }
    
    .show-to-staff-icon {
        font-size: 1.5rem;
    }
}
