/* ============================================================
   LOGIN.CSS
   Estilos exclusivos de la página de inicio de sesión (Index).
   ============================================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 1200px;
    width: 100%;
}

.login-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

/* ----- Logo Section ----- */
.logo-section {
    background: linear-gradient(135deg, rgba(210, 239, 254, 0.8) 0%, rgba(210, 217, 254, 0.8) 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* ----- Robot Icon ----- */
.robot-icon {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #258cfb 0%, #1e7ce8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(37, 140, 251, 0.3);
}

.robot-face {
    width: 100px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.robot-eyes {
    display: flex;
    gap: 15px;
}

.robot-eye {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.robot-eye::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #258cfb;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ----- Floating Icons ----- */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.icon-thermometer {
    top: 15px;
    left: 25px;
    color: #28a745;
}

.icon-camera {
    top: 25px;
    right: 20px;
    color: #17a2b8;
}

.icon-bulb {
    bottom: 35px;
    left: 15px;
    color: #ffc107;
}

.icon-plug {
    bottom: 15px;
    right: 35px;
    color: #dc3545;
}

/* ----- Brand Text ----- */
.brand-text {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    color: #258cfb;
    position: relative;
    z-index: 2;
}

.brand-text .smart {
    color: #1e7ce8;
    font-weight: 600;
}

/* ----- Login Form Container ----- */
.login-form-container {
    padding: 3rem 2.5rem;
    background: white;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ----- Login Form Controls ----- */
.login-form-container .form-floating {
    margin-bottom: 1.5rem;
}

.login-form-container .form-control {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    color: #495057;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form-container .form-control:focus {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    outline: none;
}

.login-form-container .form-floating label {
    color: #6c757d;
    font-weight: 500;
}

/* ----- Login Button ----- */
.btn-login {
    background: linear-gradient(135deg, #258cfb 0%, #1e7ce8 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 2rem;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1e7ce8 0%, #1a6bc4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 140, 251, 0.4);
}

/* ----- Recaptcha Checkbox ----- */
.login-form-container .form-check {
    padding: 1rem;
    background: rgba(37, 140, 251, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(37, 140, 251, 0.1);
    margin-bottom: 1.5rem;
}

.login-form-container .form-check-label {
    color: #495057;
    font-weight: 500;
}

/* ----- Register Link ----- */
.register-link {
    color: #258cfb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: #1e7ce8;
    text-decoration: underline;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        border-radius: 20px;
    }

    .logo-section {
        padding: 2rem 1rem;
    }

    .login-form-container {
        padding: 2rem 1.5rem;
    }

    .brand-text {
        font-size: 2rem;
    }

    .robot-icon {
        width: 150px;
        height: 150px;
    }
}