* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gm-auth-wrapper {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    color: #0f172a;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.gm-auth-container {
    width: 100%;
    max-width: 1020px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    overflow: hidden;
}

/* Panel de la imagen */
.gm-auth-brand-panel {
    padding: 24px 20px; /* Reduce el margen interno para dar más espacio a la imagen */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gm-auth-logo-img {
    width: 100%;          /* Ocupa todo el ancho disponible del panel */
    max-width: 410px;     /* Sube el límite desde 340px a 410px */
    height: auto;
    object-fit: contain;
    display: block;
}

.gm-auth-caption {
    margin-top: 14px;
    max-width: 310px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.gm-auth-divider {
    height: 75%;
    width: 1px;
    background-color: #e2e8f0;
}

/* Panel del formulario */
.gm-auth-form-panel {
    padding: 40px 36px;
    background-color: #ffffff;
}

.gm-auth-header {
    margin-bottom: 24px;
}

.gm-auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.gm-auth-header p {
    font-size: 13.5px;
    color: #64748b;
}

.gm-auth-form .form-group {
    margin-bottom: 18px;
}

.gm-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.gm-field-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gm-field-input::placeholder {
    color: #94a3b8;
}

.gm-field-input:focus {
    background-color: #ffffff;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.16);
}

.gm-field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
}

.gm-submit-btn {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00b4d8 0%, #10b981 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.25);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.gm-submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.gm-submit-btn:active {
    transform: translateY(0);
}

/* Enlace de registro */
.gm-register-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: #475569;
}

.gm-register-link {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.gm-register-link:hover {
    color: #10b981;
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
    .gm-auth-container {
        grid-template-columns: 1fr;
    }

    .gm-auth-divider {
        width: 100%;
        height: 1px;
    }

    .gm-auth-brand-panel {
        padding: 28px 20px 16px;
    }

    .gm-auth-logo-img {
        width: 300px;
    }

    .gm-auth-form-panel {
        padding: 24px 22px 32px;
    }
}