/* Signup Page Styles */
.signup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 992px) {
    .signup-container {
        grid-template-columns: 1fr;
    }

    .features-panel {
        display: none !important;
    }
}

.signup-card {
    background: white;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.signup-header .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #667eea;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

select.form-control {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

select.form-control option {
    white-space: normal;
    padding: 6px 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-check {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-top: 0.3rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    color: #495057;
}

.form-check-label a {
    color: #667eea;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.w-100 {
    width: 100%;
}

.signup-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.signup-footer p {
    color: #6c757d;
    margin: 0;
}

.signup-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Features Panel */
.features-panel {
    background: linear-gradient(160deg, #1a237e 0%, #4a148c 100%);
    padding: 3rem 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    overflow-y: auto;
}

/* -- Package header -- */
.pkg-header {
    margin-bottom: 2rem;
}

.pkg-tier-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.pkg-tier-free       { background: rgba(46,125,50,.35); border: 1px solid #81c784; color: #c8e6c9; }
.pkg-tier-pro        { background: rgba(21,101,192,.35); border: 1px solid #64b5f6; color: #bbdefb; }
.pkg-tier-enterprise { background: rgba(123,31,162,.4);  border: 1px solid #ce93d8; color: #f3e5f5; }

.pkg-name {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.pkg-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 1rem;
}
.pkg-currency { font-size: 1.1rem; opacity: .8; }
.pkg-amount   { font-size: 3rem; font-weight: 800; line-height: 1; }
.pkg-period   { font-size: 1rem; opacity: .75; }

.pkg-desc {
    opacity: .85;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.pkg-billing-model {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    opacity: .9;
}

/* -- Highlights -- */
.pkg-highlights h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: .7;
    margin: 0 0 1rem;
}

.pkg-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.pkg-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pkg-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #a5d6a7;
    margin-top: 1px;
}

/* -- Tier switcher pills -- */
.pkg-switcher {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.15);
}

.pkg-switcher p {
    font-size: 0.85rem;
    opacity: .65;
    margin: 0 0 0.75rem;
}

.pkg-tier-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pkg-pill {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    color: white;
    padding: 5px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.pkg-pill:hover {
    background: rgba(255,255,255,.22);
}

.pkg-pill.active {
    background: white;
    color: #1a237e;
    border-color: white;
}

/* Fallback features list (join company mode) */
.features-panel h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features-list li {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.feature-icon { font-size: 2rem; flex-shrink: 0; }
.features-list li strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.features-list li p { margin: 0; opacity: 0.9; }
