/* --- Project Portal (Start a Project) --- */

.portal-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 4rem;
}

.portal-container {
    width: 100%;
    max-width: 900px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.portal-header {
    padding: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-steps {
    display: flex;
    gap: 1.5rem;
}

.portal-step {
    font-size: 0.8rem;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-step.active {
    color: #fff;
}

.portal-step.active span {
    background: #fff;
    color: #000;
}

.portal-step span {
    width: 22px;
    height: 22px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.portal-body {
    padding: 3rem 4rem;
    flex: 1;
}

/* Auth Section */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 4rem;
    align-items: center;
}

.auth-divider {
    background: rgba(255, 255, 255, 0.05);
    height: 100px;
    width: 1px;
    margin: 0 auto;
}

.auth-form h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Project Selection */
.project-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.selection-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.selection-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.selection-card.selected {
    background: #fff;
    border-color: #fff;
}

.selection-card.selected * {
    color: #000 !important;
}

.selection-card i {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.selection-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.selection-card p {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.4;
}

.portal-footer {
    padding: 2.5rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-portal-next {
    padding: 1rem 2.5rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-portal-next:hover {
    transform: scale(1.02);
    background: #f0f0f0;
}

.btn-portal-prev {
    background: transparent;
    color: var(--secondary-text);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-portal-prev:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .portal-wrapper {
        padding: 100px 1rem 2rem;
    }

    .portal-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        align-items: flex-start;
    }

    .portal-steps {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .portal-step {
        font-size: 0.65rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-divider {
        height: 1px;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        display: block;
    }

    .project-selection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .selection-card {
        padding: 1.5rem;
    }

    .portal-body {
        padding: 1.5rem;
    }

    .portal-footer {
        padding: 1.5rem;
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .btn-portal-next,
    .btn-portal-prev {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .portal-container {
        border-radius: 16px;
    }

    .portal-header {
        padding: 1rem;
    }

    .portal-body {
        padding: 1rem;
    }

    .portal-footer {
        padding: 1rem;
    }

    .portal-step {
        font-size: 0.6rem;
    }

    .portal-step span {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    .selection-card {
        padding: 1.25rem;
    }

    .selection-card i {
        font-size: 1.25rem;
    }

    .selection-card h4 {
        font-size: 1rem;
    }

    .selection-card p {
        font-size: 0.8rem;
    }
}