/* =============================================
   MODAL DE LOGIN
   ============================================= */

.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(7,21,37,.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal-overlay.show {
    display: flex;
    animation: modalFadeIn .25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: modalSlideUp .3s ease;
}

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

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #9ca3af;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .2s;
}

.login-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0D2B4E;
    margin-bottom: 6px;
}

.login-modal-header p {
    font-size: .9rem;
    color: #6b7280;
}

/* Form Fields */
.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.login-field label i {
    color: #3AADE0;
    margin-right: 6px;
    width: 16px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: .95rem;
    color: #1f2937;
    transition: border-color .2s;
    background: #fafbfc;
}

.login-field input:focus {
    border-color: #3AADE0;
    outline: none;
    background: #fff;
}

.login-field input::placeholder {
    color: #9ca3af;
}

/* Actions row */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: .85rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    cursor: pointer;
}

.login-remember input {
    accent-color: #3AADE0;
}

.login-forgot {
    color: #3AADE0;
    text-decoration: none;
    font-weight: 500;
}

.login-forgot:hover {
    text-decoration: underline;
}

/* Submit */
.login-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
}

/* Footer */
.login-modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.login-modal-footer p {
    font-size: .9rem;
    color: #6b7280;
    margin: 0;
}

.login-modal-footer a {
    color: #3AADE0;
    text-decoration: none;
}

.login-modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .login-modal {
        padding: 24px 18px 32px;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        overflow-y: auto;
        width: 100%;
        max-width: 100%;
    }
    .login-modal-header h2 {
        font-size: 1.2rem;
    }
    .login-modal-header img {
        height: 36px !important;
        margin-bottom: 8px !important;
    }
    .login-field input,
    .login-field select {
        font-size: 1rem;
        padding: 13px 14px;
    }
    .login-submit {
        padding: 15px;
        font-size: 1rem;
    }
    .insc-modal-wide {
        max-width: 100% !important;
    }
    .insc-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   MODAL INSCRIÇÃO — Layout 2 colunas
   ============================================= */

.insc-modal-wide {
    max-width: 680px !important;
}

.insc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Formas de ingresso - grid horizontal */
.insc-formas-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.insc-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .2s;
    flex: 1;
    min-width: 100px;
    justify-content: center;
    white-space: nowrap;
}

.insc-opt input[type="radio"] {
    display: none;
}

.insc-opt i {
    color: #3AADE0;
    font-size: .9rem;
}

.insc-opt:hover {
    border-color: #3AADE0;
    background: #f0f9ff;
}

.insc-opt.selected {
    background: #0D2B4E;
    color: #fff;
    border-color: #0D2B4E;
}

.insc-opt.selected i {
    color: #3AADE0;
}

@media (max-width: 680px) {
    .insc-modal-wide {
        max-width: 95vw !important;
    }
    .insc-grid-2 {
        grid-template-columns: 1fr;
    }
    .insc-formas-grid {
        gap: 6px;
    }
    .insc-opt {
        padding: 8px 12px;
        font-size: .8rem;
        min-width: 80px;
    }
}
