@font-face {
    font-family: 'Archivo-SemiBold';
    src: url('../fonts/Archivo-SemiBold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --ion-color-primary: #04A583;
    --ion-color-secondary: #184281;
    --ion-color-text: #565550;
    --ion-color-text-black: #000000;
    --ion-color-white: #FFFFFF;
    --ion-color-gray-light: #E8E8E8;
    --ion-color-gray-middle: #C2C2C2;
}

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

body {
    font-family: 'Archivo-SemiBold', Arial, sans-serif;
    font-weight: 400;
    color: var(--ion-color-text-black);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.auth-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.auth-form-panel {
    flex: 0 0 440px;
    background: var(--ion-color-white);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 80px;
}

.auth-background {
    flex: 1;
    background-color: #4DD0E1;
    background-image: url('../images/fondo.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    filter: blur(8px);
    z-index: 1;
}

/* Wrapper para contener el blur */
.auth-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(0);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
    text-align: center;
}

.logo-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--ion-color-text-black);
    margin: 0;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ion-color-secondary);
    margin-bottom: 35px;
    text-align: center;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 11px 14px;
    background: var(--ion-color-white);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--ion-color-primary);
    box-shadow: 0 0 0 2px rgba(4, 165, 131, 0.08);
}

.input-icon {
    color: #667085;
    font-size: 18px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.form-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--ion-color-text-black);
    font-family: 'Archivo-SemiBold', Arial, sans-serif;
    background: transparent;
}

.form-input::placeholder {
    color: #98a2b3;
    opacity: 1;
    font-weight: 400;
}

.form-input:read-only {
    color: #667085;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--ion-color-primary);
    color: var(--ion-color-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Archivo-SemiBold', Arial, sans-serif;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #039173;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 165, 131, 0.3);
}

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

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin: 5px 0;
}

.auth-links {
    margin-top: 30px;
    text-align: center;
}

.auth-links a {
    color: var(--ion-color-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--ion-color-primary);
    text-decoration: underline;
}

.password-hint {
    font-size: 12px;
    color: #667085;
    margin-top: 8px;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-form-panel {
        flex: 1;
        width: 100%;
        border-radius: 0;
    }

    .auth-background {
        display: none;
    }
}

/* Hidden input para el token */
input[type="hidden"] {
    display: none;
}