/* ===================================
   REGISTER CUSTOM CSS - RADIÓLOGOS VIRTUALES
   ================================= */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif !important;
    background: linear-gradient(135deg, #E9F5F7 0%, #E9F5F7 100%) !important;
    min-height: 100vh;
}

/* Override AdminLTE */
.register-page {
    background: linear-gradient(135deg, #E9F5F7 0%, #E9F5F7 100%) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenedor principal centrado */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 120px; /* Espacio para el footer */
}

/* Contenedor del registro */
.register-container {
    background: transparent;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Logo personalizado clickeable */
.logo {
    width: 120px;
    height: 140px;
    margin: 0 auto 15px;
    background: url('https://i.imgur.com/x1r5cVE.png') center/contain no-repeat;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Títulos */
.register-title {
    background: linear-gradient(135deg, #007ABF 0%, #26C485 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: -5px;
    text-align: center;
}

.register-subtitle {
    color: #101724;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

/* Selector de tipo de usuario */
.user-type-selector {
    margin-bottom: 25px;
}

.user-type-label {
    color: #101724;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.user-type-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.user-type-btn {
    flex: 1;
    max-width: 140px;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.user-type-btn i {
    font-size: 20px;
}

.user-type-btn:hover {
    border-color: #007ABF;
    color: #007ABF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 191, 0.1);
}

.user-type-btn.active {
    background: linear-gradient(135deg, #007ABF 0%, #26C485 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 191, 0.3);
}

/* Form styles */
.form-group {
    margin-bottom: 12px;
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input {
    width: 100% !important;
    padding: 15px 20px;
    padding-right: 65px;
    background: #101724 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: none !important;
    height: 55px;
}

.form-input::placeholder {
    color: #95a5a6 !important;
}

.form-input:focus {
    background: #1a2332 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    border: none !important;
}

.input-icon {
    position: absolute;
    right: 0px;
    width: 55px;
    height: 55px;
    background: #26C485;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 18px;
}

.input-container:focus-within {
    transform: translateY(-2px) scale(1.02);
}

.input-container:focus-within .input-icon {
    background: #1e9a5e;
}

/* Botón de registro */
.register-btn {
    width: 100%;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #007ABF 0%, #26C485 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    height: 55px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 122, 191, 0.4) !important;
    color: white !important;
}

.register-btn i {
    font-size: 18px;
}

/* Link para login */
.login-link-container {
    text-align: center;
    margin-top: 15px;
}

.login-link {
    color: #666 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #007ABF !important;
    text-decoration: underline;
}

/* Footer fijo abajo */
.footer {
    background: #101724;
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #26C485;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: #1a2332;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon:hover {
    background: #007ABF;
    transform: translateY(-2px);
    color: white;
}

/* Animaciones */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 15px;
        padding-bottom: 140px;
    }

    .register-container {
        max-width: 380px;
    }

    .user-type-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .user-type-btn {
        max-width: none;
        flex-direction: row;
        justify-content: center;
    }

    .register-title {
        font-size: 28px;
    }

    .register-subtitle {
        font-size: 18px;
    }

    .footer {
        position: relative;
        margin-top: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .register-container {
        max-width: 320px;
    }

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

    .form-input {
        font-size: 14px;
        padding: 12px 18px;
        padding-right: 60px;
        height: 50px;
    }

    .input-icon {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .register-btn {
        height: 50px;
        font-size: 14px;
    }
}

/* Ocultar elementos AdminLTE que interfieren */
.register-box,
.card,
.card-body,
.register-logo {
    display: none !important;
}

/* Animación de entrada para los elementos del formulario */
.form-group {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
