
.signup-container {
    height: calc(100vh - 107px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.signup-card {
    width: 800px; /* Good for 14" Mac viewport */
    margin: 0 auto;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-header {
    background: linear-gradient(to bottom, #f9f9f9, #e5e5e5);
    color: #333;
    padding: 12px; /* Increased for better proportion */
    text-align: center;
}

.form-header h1 {
    font-size: 1.5rem; /* Fixed for 14" Mac */
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.form-header p {
    opacity: 0.8;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Enhanced Progress Bar - 14" Mac optimized */
.header-progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 25px; /* Good spacing for 14" Mac */
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.completed:not(:last-child)::after {
    background: #27AE60;
}

.progress-step.active:not(:last-child)::after {
    background: linear-gradient(to right, #27AE60 50%, #dee2e6 50%);
}

.step-number {
    width: 26px; /* Slightly larger for better proportion */
    height: 26px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #4A89DC;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(74, 137, 220, 0.3);
}

.progress-step.completed .step-number {
    background: #27AE60;
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.progress-step.disabled .step-number {
    opacity: 0.5;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.progress-step.active .step-label {
    color: #4A89DC;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #27AE60;
}

.progress-step.disabled .step-label {
    opacity: 0.5;
}

.progress-step:hover:not(.disabled) {
    cursor: pointer;
}

.progress-step:hover:not(.disabled) .step-number {
    transform: scale(1.05);
}

.signup-content {
    padding: 16px 32px; /* Good padding for 14" Mac */
}

/* Step Content */
.step-content {
    animation: fadeIn 0.3s ease-in-out;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    display: flex;
    justify-content: center;
}

.step-description {
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 13px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 48px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4A89DC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Form Elements - 14" Mac optimized */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
    line-height: 1.2;
}

.form-control {
    width: 100%;
    border-radius: 4px;
    padding: 8px 12px; /* Better padding for 14" Mac */
    font-size: 13px;
    border: 1px solid #ccc;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.4;
}

.form-control:focus {
    outline: none;
    border-color: #4A89DC;
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.1);
}

.form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

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

.form-col {
    flex: 1;
}
.invitation-info{
    margin-bottom: 2rem;
}

/* Plan Selection - 14" Mac optimized */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.plan-card {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.plan-card:hover {
    border-color: #4A89DC;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
    border-color: #4A89DC;
    background-color: rgba(74, 137, 220, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 137, 220, 0.2);
}

.plan-header {
    margin-bottom: 12px;
}

.plan-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    font-size: 13px;
}

.plan-price {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.plan-features {
    list-style: none;
    font-size: 11px;
    color: #666;
    margin: 0;
    padding: 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.plan-features li::before {
    content: "✓";
    color: #27AE60;
    font-weight: bold;
    position: absolute;
    left: 0;
    margin-right: 8px;
}

.auth-grid{
    display: flex;
    grid-template-columns: 1fr 2fr;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-card {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.auth-card:hover {
    border-color: #4A89DC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-card.selected {
    border-color: #4A89DC;
    background-color: rgba(74, 137, 220, 0.05);
    transform: translateY(-2px);
}

.auth-card.recommended {
    border-color: #27AE60;
}

.auth-card.recommended.selected {
    border-color: #27AE60;
    background-color: rgba(39, 174, 96, 0.05);
}

.auth-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    justify-content: center;
}

.auth-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Social Authentication */
.social-auth-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.social-instruction {
    font-size: 12px;
    color: #495057;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.social-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.social-btn {
    flex: 1;
    font-size: 11px;
    padding: 8px 6px;
    border-radius: 4px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 500;
}

.social-btn.google { background-color: #ea4335; }
.social-btn.microsoft { background-color: #0078d4; }
.social-btn.github { background-color: #24292e; }

.social-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 4px;
    padding: 12px;
    margin-top: 16px;
}

.auth-success-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-icon {
    font-size: 16px;
    color: #27AE60;
}

/* Auth Preview */
.auth-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
}

.auth-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-provider-icon {
    font-size: 20px;
}

/* Summary Section */
.summary-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.summary-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

.summary-grid {
    display: grid;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.summary-value {
    color: #333;
    text-align: right;
    font-size: 13px;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.form-check-input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.form-check-label {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.form-check-label a {
    color: #4A89DC;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
    line-height: 1.4;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

/* Buttons - 14" Mac optimized */
.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.btn-primary {
    background-color: #4A89DC;
    border-color: #3A79CC;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #3A79CC;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 137, 220, 0.3);
}

.btn-outline {
    background-color: white;
    color: #4A89DC;
    border-color: #4A89DC;
}

.btn-outline:hover:not(:disabled) {
    background-color: #4A89DC;
    color: white;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Enhanced Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 5px;
    border-top: 1px solid #dee2e6;
}

/* Footer */
.footer-links {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 20px;
}

.footer-links p {
    margin: 4px 0;
    line-height: 1.3;
}

.footer-links a {
    color: #4A89DC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #3A79CC;
}

.validation-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    line-height: 1.3;
}

/* =======================================
   Responsive Adjustments
   ======================================= */

/* Medium screens (≤ 1440px, e.g., 16") */
@media (max-width: 1440px) {
    .signup-card {
        width: 720px;
    }

    .form-header h1 {
        font-size: 1.4rem;
    }

    .form-header p,
    .form-control,
    .form-label,
    .step-description,
    .btn,
    .summary-label,
    .summary-value {
        font-size: 12px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Small laptops (≤ 1280px, e.g., 13") */
@media (max-width: 1280px) {
   
    .signup-card {
        width: 640px;
    }

    .form-header h1 {
        font-size: 1.25rem;
    }

    .form-header p,
    .form-label,
    .form-control,
    .btn,
    .step-label,
    .summary-label,
    .summary-value {
        font-size: 11.5px;
    }

    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-grid {
        flex-direction: column;
    }
}

/* Tablets (≤ 991px) */
@media (max-width: 991px) {
    .signup-card {
        width: 100%;
        margin: 0 12px;
    }

    .form-header h1 {
        font-size: 1.2rem;
    }

    .form-header p,
    .form-label,
    .form-control,
    .btn,
    .step-label {
        font-size: 11px;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid {
        flex-direction: column;
        gap: 12px;
    }

    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
    .signup-container {
        padding: 1rem;
    }

    .signup-card {
        width: 100%;
        border-radius: 4px;
        padding: 12px;
    }

    .form-header {
        padding: 8px;
    }

    .form-header h1 {
        font-size: 1.1rem;
    }

    .form-header p {
        font-size: 10.5px;
    }

    .form-control {
        padding: 6px 10px;
        font-size: 11px;
    }

    .btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .btn-lg {
        padding: 10px 16px;
        font-size: 12px;
    }

    .plan-card,
    .auth-card {
        padding: 12px;
    }

    .plan-title,
    .auth-title,
    .summary-label,
    .summary-value {
        font-size: 11px;
    }

    .step-number {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .step-label {
        font-size: 10px;
    }

    .social-buttons {
        flex-direction: column;
        gap: 6px;
    }
}
