.ap-page {
    background: #e9e9e9;
}

.ap-login-layout {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ap-visual {
    position: relative;
    background: url('../img/acceso profesional.jpeg') center/cover no-repeat;
}

.ap-visual-overlay {
    position: absolute;
    inset: 0;
    display: none;
}

.ap-visual-copy {
    position: absolute;
    left: clamp(24px, 6vw, 66px);
    bottom: clamp(34px, 7vw, 84px);
    color: #ffffff;
    z-index: 1;
}

.ap-visual-copy h1 {
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.04;
    font-weight: 600;
    max-width: 500px;
    margin-bottom: 8px;
}

.ap-visual-copy h1 span {
    color: #da2c2c;
}

.ap-visual-copy p {
    font-size: clamp(14px, 0.95vw, 18px);
    color: #e4e8ef;
}

.ap-panel-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(24px, 4vw, 42px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(244, 244, 244, 0.96)),
        repeating-linear-gradient(45deg, rgba(17, 27, 39, 0.015) 0, rgba(17, 27, 39, 0.015) 2px, transparent 2px, transparent 8px);
}

.ap-card {
    width: min(500px, 100%);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 10px 20px rgba(22, 34, 50, 0.09);
    padding: clamp(28px, 2.6vw, 36px);
}

.ap-card h2 {
    font-size: clamp(22px, 1.75vw, 30px);
    color: #1e2a37;
    margin-bottom: 18px;
    font-weight: 600;
}

.ap-form {
    padding-top: 12px;
    border-top: 1px solid #e9edf2;
}

.ap-field {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    min-height: 48px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    margin-bottom: 10px;
    background: #ffffff;
}

.ap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #545d69;
}

.ap-field input {
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 17px;
    color: #1f2933;
    background: transparent;
    padding-right: 10px;
}

.ap-field input::placeholder {
    color: #6a7380;
}

.ap-field:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.ap-dots {
    padding: 0 14px 0 8px;
    color: #566575;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 16px;
}

.ap-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 0 2px;
    cursor: pointer;
    font-size: 13px;
    color: #495868;
    user-select: none;
}

.ap-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc2626;
}

.ap-forgot {
    display: block;
    text-align: right;
    margin: 0 2px 12px;
    color: #495868;
    font-size: 12px;
}

.ap-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.ap-btn-red {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(220, 38, 38, 0.32);
}

.ap-divider {
    margin: 16px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #e9edf2;
    text-align: center;
    color: #3d4a59;
    font-size: 13px;
}

.ap-btn-green {
    background: linear-gradient(180deg, #317f56, #1e6541);
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(39, 101, 69, 0.28);
}

@media (max-width: 1080px) {
    .ap-login-layout {
        grid-template-columns: 1fr;
    }

    .ap-visual {
        min-height: 320px;
    }

    .ap-panel-wrap {
        padding: 20px 14px 28px;
    }

    .ap-card h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .ap-visual {
        min-height: 280px;
    }

    .ap-visual-copy h1 {
        font-size: 32px;
    }

    .ap-card {
        border-radius: 12px;
        padding: 18px;
    }

    .ap-card h2 {
        font-size: 24px;
    }

    .ap-field input {
        font-size: 16px;
    }

    .ap-btn {
        font-size: 13px;
    }
}
